mayn.Portlet.app_style = mayn.Portlet.extend({ __version : "1.0.0.0", __id : "AppStyle", showPortlet : function(mseq) { this._DoPost('showPortlet', { 'mseq' : mseq }, this.tpl_compile_$showPortlet); }, tpl_compile_$showPortlet : function(a_data) { $("#appstyle_container").html(a_data); }, doEditMode : function() { this._DoGet('doEditMode', '', this.tpl_compile_$doEditMode); }, tpl_compile_$doEditMode : function(a_data) { $("#appstyle_container").html(a_data); }, selEdit : function(a_id) { this._DoPost('selEdit', { 'idx' : a_id }, this.tpl_compile_$selEdit); }, tpl_compile_$selEdit : function(a_data) { $("#UIbox_apps_editmode").hide(); $(".UIset_appstyle").html(a_data); }, saveEdit : function(a_idx, a_name, a_link, a_class) { this._DoPost('saveEdit', { idx: a_idx, title: a_name, link: a_link, cssclass: a_class }, this.tpl_compile_$saveEdit); }, tpl_compile_$saveEdit : function(a_data) { objAppStyle.showPortlet(''); }, delIcon : function() { this._DoGet('delIcon', '', this.tpl_compile_$delIcon); }, tpl_compile_$delIcon : function(a_data) { $("#appstyle_container").html(a_data); }, doAddMode : function() { this._DoGet('doAddMode', '', this.tpl_compile_$doAddMode); }, tpl_compile_$doAddMode : function(a_data) { $("#appstyle_container").html(a_data); }, saveAdd : function(a_name, a_link, a_class) { this._DoPost('saveAdd', { title: a_name, link: a_link, cssclass: a_class }, this.tpl_compile_$saveAdd); }, tpl_compile_$saveAdd : function(a_data) { objAppStyle.showPortlet(''); }, saveDel : function(a_idx) { this._DoPost('saveDel', { idx : a_idx }, this.tpl_compile_$saveDel); }, tpl_compile_$saveDel : function(a_data) { objAppStyle.showPortlet(''); }, doOrder : function() { this._DoGet('doOrder', '', this.tpl_compile_$doOrder); }, tpl_compile_$doOrder : function(a_data) { $("#appstyle_container").html(a_data); $("#UIbox_apps_user_container").sortable({containment:".UIbox_apps_GUEST", opacity:0.6}); $("#UIbox_apps_user_container").disableSelection(); }, saveOrder : function( a_vls ) { this._DoPost('saveOrder', { vls: a_vls.join(',') }, this.tpl_compile_$saveOrder); }, tpl_compile_$saveOrder : function(a_data) { objAppStyle.showPortlet(''); } });