MINOR Removed jQuery.layout references

This commit is contained in:
Ingo Schommer 2011-03-31 11:56:23 +13:00
parent 7a124e1e63
commit c193743b43
3 changed files with 2 additions and 32 deletions

View File

@ -63,7 +63,6 @@
this.draggable({
zIndex: 4000,
//stack: {group: '.ui-layout-west'},
appendTo: 'body',
helper: function() {
return $(

View File

@ -4,30 +4,6 @@
(function($) {
$.entwine('ss', function($){
/**
* Class: #contentPanel form
*
* All forms in the right content panel should have closeable jQuery UI style titles.
*/
// TODO Change to modal dialog, jQuery UI update somehow messed up the button positioning,
// they're no longer clickable
// $('#contentPanel form').entwine({
// // Constructor: onmatch
// onmatch: function() {
// // Style as title bar
// this.find(':header:first').titlebar({
// closeButton:true
// });
// // The close button should close the east panel of the layout
// this.find(':header:first .ui-dialog-titlebar-close').bind('click', function(e) {
// $('body.CMSMain').entwine('ss').getMainLayout().close('east');
// return false;
// });
//
// this._super();
// }
// });
/**
* Class: #Form_SearchTreeForm
*

View File

@ -55,15 +55,10 @@
if(!showForm || showForm.style.display == "none") {
ed.controlManager.setActive(showCommand, false);
// Can't use $('contentPanel'), as its in a different window
window.parent.document.getElementById('contentPanel').style.display = "none";
// toggle layout panel
jQuery('body.CMSMain').entwine('ss').getMainLayout().close('east');
jQuery('#contentPanel', window.parent).hide();
} else {
ed.controlManager.setActive(showCommand, true);
window.parent.document.getElementById('contentPanel').style.display = "block";
// toggle layout panel
jQuery('body.CMSMain').entwine('ss').getMainLayout().resizeAll();
jQuery('body.CMSMain').entwine('ss').getMainLayout().open('east');
jQuery('#contentPanel', window.parent).show();
}
}