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.
*/
$('#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();
}
});
// 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