mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Removed jQuery.layout references
This commit is contained in:
parent
7a124e1e63
commit
c193743b43
@ -63,7 +63,6 @@
|
||||
|
||||
this.draggable({
|
||||
zIndex: 4000,
|
||||
//stack: {group: '.ui-layout-west'},
|
||||
appendTo: 'body',
|
||||
helper: function() {
|
||||
return $(
|
||||
|
@ -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
|
||||
*
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user