Commits

Alexander Zaitsev committed d5757c5

Fixed 'Server does not response' error. Subscription button removed in own blog.

Comments (0)

Files changed (6)

 Клиент под WebOS для сервиса http://juick.com
 
 Release notes
+* 0.7.50 - Добавлено отображение собственного блога
 * 0.7.16 - Исправлен тап по http ссылке.
 * 0.7.15 - Исправлен ложный тап на картинке. На телефоне картинки теперь загружаются меньшего размера, экономя трафик
 * 0.7.8  - Исправлены исчезающие кнопки в сцене ответа.

juick.application/app/assistants/Main-assistant.js

          },
          this.model = {
              listTitle: "Last posts",
-             //items : [
-                 //{data: "Loading...", definition: "definition"},
-             //]
        items: this.messages,
           }
     );
-  
-
   this.controller.setupWidget(Mojo.Menu.appMenu,
     this.attributes = {
         omitDefaultItems: true
     }
   );
   this.mainmenu={
-        visible: true,
-        items: [ 
-          { icon: 'compose', command: 'do-New'},
-          { icon: '', label: "Home/Last", toggleCmd: 'do-Home',
-        items: [
-          //icons: suggestions for own blog: make-vip,remove-vip
-          { icon: 'make-vip', label: "My", command: 'do-My'},
-          { icon: 'home', label: "Home", command: 'do-Home'},
-          { icon: 'last', label: "Last", command: 'do-Last'}
-          ]
-        },
-            
+    visible: true,
+    items: [ 
+      { icon: 'compose', command: 'do-New'},
+      { icon: '', label: "Home/Last", toggleCmd: 'do-Home',
+    items: [
+      //icons: suggestions for own blog: make-vip,remove-vip
+      { icon: 'make-vip', label: "My", command: 'do-My'},
+      { icon: 'home', label: "Home", command: 'do-Home'},
+      { icon: 'last', label: "Last", command: 'do-Last'}
+      ]
+      },
       { icon: "refresh", command: "do-Refresh"},
-        ]
-    }
+    ]
+  }
   var list=this.controller.get('mainlistid');
-    if(this.list=="home")
-    {
-      this.mainmenu={
-        visible: true,
-        items: [ 
-          { icon: 'compose', command: 'do-New'},
-          { icon: '', label: "Home/Last", toggleCmd: 'do-Home',
-        items: [
-          //icons: suggestions for own blog: make-vip,remove-vip
-          { icon: 'make-vip', label: "My", command: 'do-My'},
-          { icon: 'home', label: "Home", command: 'do-Home'},
-          { icon: 'last', label: "Last", command: 'do-Last'}
-          ]
-        },
-            
-      { icon: "refresh", command: "do-Refresh"},
-        ]
-    }
+  if(this.list=="home")
+  {
+    this.mainmenu.items[1].toggleCmd='do-Home';
   }
   else
   {
-      this.mainmenu={
-        visible: true,
-        items: [ 
-          { icon: 'compose', command: 'do-New'},
-          { icon: '', label: "Home/Last", toggleCmd: 'do-Last',
-        items: [
-          //icons: suggestions for own blog: make-vip,remove-vip
-          { icon: 'make-vip', label: "My", command: 'do-My'},
-          { icon: 'home', label: "Home", command: 'do-Home'},
-          { icon: 'last', label: "Last", command: 'do-Last'}
-          ]
-        },
-            
-      { icon: "refresh", command: "do-Refresh"},
-        ]
-    }
+    this.mainmenu.items[1].toggleCmd='do-New';
   }
   /* add event handlers to listen to events from widgets */
    

juick.application/app/assistants/User-assistant.js

             spinning: true,
         }
     );
-    this.controller.setupWidget(Mojo.Menu.commandMenu,
-    this.attributes = {
-        spacerHeight: 0,
-        menuClass: 'no-fade'
-    },
-    this.model = {
+    this.menumodel={
         visible: true,
         items: [ 
             //{ icon: "attach", command: "do-Attach"},
             { icon: '', label: "Ss", command: "do-Send"}
         ]
     }
-  );
+    if(this.username.toLowerCase()==Settings.login.toLowerCase())
+    {
+      this.menumodel.visible=false;
+    }
+    this.controller.setupWidget(Mojo.Menu.commandMenu,
+    this.attributes = {
+        spacerHeight: 0,
+        menuClass: 'no-fade'
+    },this.menumodel );
   if(isTouchpad())
   {
     this.controller.get("back").style.display="block";

juick.application/app/assistants/stage-assistant.js

 									newscene.user="";
 								}
 								Mojo.Controller.stageController.popScene(this.controller, this);
-                this.more=1;
-                var com = new Object();
-                com.command = "do-Refresh";
-                com.type = "mojo-command";
-                com.sender=this; 
-                StageAssistant.prototype.handleCommand(com);
+                //this.more=1;
+                //var com = new Object();
+                //com.command = "do-Refresh";
+                //com.type = "mojo-command";
+                //com.sender=this; 
+                //StageAssistant.prototype.handleCommand(com);
 							}
 							else{
 								Mojo.Log.error("Fail:",xmlhttp.responseText);

juick.application/appinfo.json

 {
 	"id": "ru.ya.shura0.juickclient",
-	"version": "0.7.51",
+	"version": "0.7.52",
 	"vendor": "shura",
 	"type": "web",
 	"main": "index.html",

juick.package/packageinfo.json

   "id": "ru.ya.shura0.juickclient",
   "package_format_version": 2,
   "loc_name": "Juick client with websocket service",
-  "version": "0.7.51",
+  "version": "0.7.52",
   "icon": "icon.png",
   "miniicon": "icon.png",
   "vendor": "shura0@yandex.ru",