Fixed problem with jQuery UI sortable

- jQuery UI sortable drag initiation is slow when container has hidden
items;
- removed old code to open/close BookmarksBox in IITCm;
This commit is contained in:
Giacinto Garcea
2014-02-06 19:56:56 +01:00
parent 53d04c70a5
commit 24dbeaca9a
2 changed files with 12 additions and 17 deletions

View File

@ -151,18 +151,11 @@
}
if(newStatus === 1) {
$('#bookmarksBox').show();
$('#bkmrksTrigger').hide();
$('#bookmarksBox').css('height', 'auto');
$('#bkmrksTrigger').css('height', '0');
} else {
$('#bookmarksBox').hide();
$('#bkmrksTrigger').show();
}
if(window.plugin.bookmarks.isSmart) {
var button = $('#bkmrksTrigger');
button.toggleClass('open');
if(button.hasClass('open')) { button.text('[-] Bookmarks'); }
else{ button.text('[+] Bookmarks'); }
$('#bkmrksTrigger').css('height', '64px');
$('#bookmarksBox').css('height', '0');
}
window.plugin.bookmarks.statusBox['show'] = newStatus;
@ -919,6 +912,7 @@
+'<a class="newFolder" onclick="window.plugin.bookmarks.addElement(this, \'folder\');return false;">+ Folder</a>'
+'</div>'
+'</div>'
+'<div style="border-bottom-width:1px;"></div>'
+'</div>';
plugin.bookmarks.htmlDisabledMessage = '<div title="Your browser do not support localStorage">Plugin Bookmarks disabled*.</div>';