diff --git a/app/assets/javascripts/lib/items/items.js.erb b/app/assets/javascripts/lib/items/items.js.erb index 5a687a549..c687386d3 100644 --- a/app/assets/javascripts/lib/items/items.js.erb +++ b/app/assets/javascripts/lib/items/items.js.erb @@ -53,6 +53,7 @@ function customOpenSlide() { .addClass('active'); }, closeFn: function(pageslide, element) { + $('.item-menu').removeAttr('style'); element.removeClass('active') .closest('.navbar-inner') .removeClass('active'); @@ -60,7 +61,12 @@ function customOpenSlide() { loadComplete: function(pageslide, element) { $openSlide.removeClass('active'); $('.navbar-inner').removeClass('active'); - element.addClass('active').closest('.navbar-inner').addClass('active'); + $('.item-menu').removeAttr('style'); + element.addClass('active') + .closest('.item-menu') + .css('display', 'inline-block') + .closest('.navbar-inner') + .addClass('active'); var _id = element.data('id'), _type = element.hasClass('page') ? 'page' : 'link', _edit = element.hasClass('edit') ? true : false; @@ -85,6 +91,7 @@ function customOpenSlide() { .addClass('active'); }, closeFn: function(pageslide, element) { + $('.item-menu').removeAttr('style'); element.removeClass('active') .closest('.navbar-inner') .removeClass('active'); @@ -93,7 +100,12 @@ function customOpenSlide() { loadComplete: function(pageslide, element) { $openSlide.removeClass('active'); $('.navbar-inner').removeClass('active'); - element.addClass('active').closest('.navbar-inner').addClass('active'); + $('.item-menu').removeAttr('style'); + element.addClass('active') + .closest('.item-menu') + .css('display', 'inline-block') + .closest('.navbar-inner') + .addClass('active'); pageslide.find('.content').css('padding', 0); } }); @@ -153,7 +165,7 @@ function pageSetting(id, edit) { }) .fail(function(jqXHR, textStatus) { console.log(jqXHR.status, textStatus) - var $errorMsg = '
Sorry! Something is wrong
Sorry! Something is wrong