mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merged from trunk
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@77326 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
03aa331441
commit
1f3b3f49cd
@ -112,7 +112,7 @@ input.hidden {
|
||||
}
|
||||
|
||||
/* Overrides - TODO Find a better place to put them */
|
||||
form#Form_EditForm fieldset {
|
||||
form#Form_EditForm fieldset, form#Form_AddForm fieldset {
|
||||
height: 100%;
|
||||
border: none;
|
||||
}
|
||||
|
@ -126,6 +126,7 @@ Behaviour.register({
|
||||
|
||||
window.ontabschanged = function() {
|
||||
var formEl = $('Form_EditForm');
|
||||
if( !formEl ) formEl = $('Form_AddForm');
|
||||
|
||||
if( !formEl )
|
||||
return;
|
||||
@ -156,7 +157,7 @@ window.onresize = function(init) {
|
||||
if(typeof fitToParent == 'function') {
|
||||
fitToParent('right', 12);
|
||||
if($('ModelAdminPanel')) {
|
||||
fitToParent('ModelAdminPanel',-30);
|
||||
fitToParent('ModelAdminPanel',-60);
|
||||
}
|
||||
if($('contentPanel')) {
|
||||
fitToParent('contentPanel', 12);
|
||||
@ -175,7 +176,9 @@ window.onresize = function(init) {
|
||||
}
|
||||
|
||||
if(typeof fitToParent == 'function') {
|
||||
fitToParent('Form_EditForm', 4);
|
||||
if($('Form_EditForm')) fitToParent('Form_EditForm', 4);
|
||||
if($('Form_AddForm')) fitToParent('Form_AddForm', 4);
|
||||
|
||||
if($('Form_EditorToolbarImageForm') && $('Form_EditorToolbarImageForm').style.display == "block") {
|
||||
fitToParent('Form_EditorToolbarImageForm', 5);
|
||||
fitToParent($('Form_EditorToolbarImageForm').getElementsByTagName('fieldset')[0]);
|
||||
|
@ -74,6 +74,8 @@ $(document).ready(function() {
|
||||
* to the response table, excluding the import form because
|
||||
* file ($_FILES) submission doesn't work using AJAX
|
||||
*
|
||||
* Note: This is used for Form_CreateForm too
|
||||
*
|
||||
* @todo use livequery to manage ResultTable click handlers
|
||||
*/
|
||||
$('#SearchForm_holder .tab form:not(#Form_ImportForm)').submit(function () {
|
||||
@ -90,6 +92,8 @@ $(document).ready(function() {
|
||||
|
||||
$('#form_actions_right').remove();
|
||||
Behaviour.apply();
|
||||
console.log(window.onresize);
|
||||
if(window.onresize) window.onresize();
|
||||
// Remove the loading indicators from the buttons
|
||||
$('input[type=submit]', $form).removeClass('loading');
|
||||
},
|
||||
@ -192,7 +196,8 @@ $(document).ready(function() {
|
||||
// TODO/SAM: It seems a bit of a hack to have to list all the little updaters here.
|
||||
// Is livequery a solution?
|
||||
Behaviour.apply(); // refreshes ComplexTableField
|
||||
});
|
||||
if(window.onresize) window.onresize();
|
||||
}, 'html');
|
||||
|
||||
return false;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user