MINOR Formatting in ModelAdmin.js

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92758 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 03:17:13 +00:00
parent e22fdb94ca
commit 59790b102d

View File

@ -93,7 +93,10 @@ $(document).ready(function() {
jQuery('#Form_EditForm').concrete('ss').cleanup(); jQuery('#Form_EditForm').concrete('ss').cleanup();
$('#ModelAdminPanel').fn('startHistory', $(this).attr('action'), $(this).formToArray()); $('#ModelAdminPanel').fn('startHistory', $(this).attr('action'), $(this).formToArray());
$('#ModelAdminPanel').load($(this).attr('action'), $(this).formToArray(), standardStatusHandler(function(result) { $('#ModelAdminPanel').load(
$(this).attr('action'),
$(this).formToArray(),
standardStatusHandler(function(result) {
if(!this.future || !this.future.length) { if(!this.future || !this.future.length) {
$('#Form_EditForm_action_goForward, #Form_ResultsForm_action_goForward').hide(); $('#Form_EditForm_action_goForward, #Form_ResultsForm_action_goForward').hide();
} }
@ -111,7 +114,9 @@ $(document).ready(function() {
// Failure handler - we should still remove loading indicator // Failure handler - we should still remove loading indicator
function () { function () {
$('input[type=submit]', $form).removeClass('loading'); $('input[type=submit]', $form).removeClass('loading');
})); })
);
return false; return false;
}); });
@ -160,16 +165,6 @@ $(document).ready(function() {
$('#ModelAdminPanel').fn('loadForm', el.attr('href')); $('#ModelAdminPanel').fn('loadForm', el.attr('href'));
return false; return false;
}); });
/* this isn't being used currently; the real hover code is part of TableListField
.hover(
function(){
$(this).addClass('over').siblings().addClass('over')
},
function(){
$(this).removeClass('over').siblings().removeClass('over')
}
);
*/
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
// RHS detail form // RHS detail form