var myslice = {
user: {},
- user: function() {
+ get_user: function() {
if ($.isEmptyObject(this.user)) {
//this.login(function() { return this.user; });
if(localStorage.getItem('user')!='undefined'){
},
projects: {},
- projects: function() {
+ get_projects: function() {
if ($.isEmptyObject(this.projects)) {
//this.login(function() { return this.user; });
if(localStorage.getItem('projects')!='undefined'){
fn();
}
}
-
},
$(document).ready(function() {
{% if username %}
myslice.login(function(){
- user = myslice.user();
+ user = myslice.get_user();
var slices = [];
if($.isEmptyObject(user)){
//drawSlices(slices);
}
{% if theme == "fed4fire" %}
- p = myslice.projects();
+ p = myslice.get_projects();
if(p != null){
//drawProjects(p);
drawProjectsTree(p,slices);