From cb5579c06465d9aa509f7afc3f93bf270f411161 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 15 Oct 2013 19:15:38 +0800 Subject: [PATCH] new feature added for not loading submenus inside api for desktop --- app/assets/javascripts/desktop/orbitdesktop.js | 2 +- app/views/desktop/index.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/desktop/orbitdesktop.js b/app/assets/javascripts/desktop/orbitdesktop.js index b364466e9..065d64cbd 100755 --- a/app/assets/javascripts/desktop/orbitdesktop.js +++ b/app/assets/javascripts/desktop/orbitdesktop.js @@ -607,7 +607,7 @@ var orbitDesktop = function(dom){ if(!customload)customload=false; var target = dom.attr("id"), url = dom.attr("href"), - submenu_pass = ( dom.attr("sub-menu") ? true : false); + submenu_pass = ( dom.attr("sub-menu") == "false" ? false : true); if(!url)return false; o.data_method = dom.attr("callback-method"); diff --git a/app/views/desktop/index.html.erb b/app/views/desktop/index.html.erb index 62f742ecf..67222c693 100644 --- a/app/views/desktop/index.html.erb +++ b/app/views/desktop/index.html.erb @@ -4,7 +4,7 @@