diff --git a/app/assets/javascripts/desktop/journal_pages.js.erb b/app/assets/javascripts/desktop/journal_pages.js.erb index eea4e901..5cb5e3c9 100644 --- a/app/assets/javascripts/desktop/journal_pages.js.erb +++ b/app/assets/javascripts/desktop/journal_pages.js.erb @@ -344,7 +344,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ // fill: '.s_grid_con' }) $(".bt-cancel").click(function(){ - o.sub_menu_item($(div[content-type=menu] a[custom-load=acoauthor])); + o.sub_menu_item($("div[content-type=menu] a[custom-load=acoauthor]")); }) } diff --git a/app/assets/javascripts/orbitdesktop.js b/app/assets/javascripts/orbitdesktop.js index 8176e66c..16591be7 100755 --- a/app/assets/javascripts/orbitdesktop.js +++ b/app/assets/javascripts/orbitdesktop.js @@ -233,6 +233,21 @@ var orbitDesktop = function(dom){ if(o.data_method != "") window.o[o.data_method](target,url,cache); } + try{ + if(!customload) + o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]")); + else{ + if(submenuitem) + o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[custom-load="+submenuitem+"]")); + else + o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]")); + } + }catch(EX){} + + }) + }else{ + $(o.contentHolder).html(o.desktopData[o.currentface]); + try{ if(!customload) o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]")); else{ @@ -241,18 +256,7 @@ var orbitDesktop = function(dom){ else o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]")); } - - }) - }else{ - $(o.contentHolder).html(o.desktopData[o.currentface]); - if(!customload) - o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]")); - else{ - if(submenuitem) - o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[custom-load="+submenuitem+"]")); - else - o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]")); - } + }catch(EX){} cache = true; if(typeof o.data_method != "undefined"){ if(o.data_method != "") @@ -565,7 +569,6 @@ var orbitDesktop = function(dom){ loadApps(); }; this.initializeSectionsManager = function(target,url,cache){ // this is init function for section manager - var elementParent,element,slabel; var bindHandlers = function(){ // this is bind handler for section manager page var groupWrapperWidth = 0; @@ -641,6 +644,7 @@ var orbitDesktop = function(dom){ $.each(apps,function(i,app){ $li = $('
  • '+app.title+'

  • '); + $("ul#section"+yy).append($li); }) if(y==1){ diff --git a/app/views/desktop/settings/sections.html.erb b/app/views/desktop/settings/sections.html.erb index dcb92237..d8e8208e 100644 --- a/app/views/desktop/settings/sections.html.erb +++ b/app/views/desktop/settings/sections.html.erb @@ -1,18 +1,178 @@ -
    -
    -
    -
    -
    Section Names
    -
      -
    • -
    • -
    • -
    • -
    -
    sample desciption
    -
    - Confirm +
    +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    -
    \ No newline at end of file +
    \ No newline at end of file