MINOR Disable ui-titlebar styling for link/image forms, as it breaks the "insert" button interactions (to be replaced with a new modal dialog implementation soon anyway)

This commit is contained in:
Ingo Schommer 2011-04-05 15:34:59 +12:00
parent f547da23a3
commit 842c38fbc4

View File

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