mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
BUGFIX: avoid adding loading class to TinyMCE add link, image, flash buttons
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@105505 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c7fc13c9fe
commit
1b6741e08d
@ -58,10 +58,11 @@ $(document).ready(function() {
|
|||||||
/*
|
/*
|
||||||
* Highlight buttons on click
|
* Highlight buttons on click
|
||||||
*/
|
*/
|
||||||
$('input[type=submit]').live('click', function() {
|
$('#form_actions_right input[type=submit], #left input[type=submit]').live('click', function() {
|
||||||
$(this).addClass('loading');
|
$(this).addClass('loading');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$('input[name=action_search]').live('click', function() {
|
$('input[name=action_search]').live('click', function() {
|
||||||
$('#contentPanel').fn('closeRightPanel');
|
$('#contentPanel').fn('closeRightPanel');
|
||||||
if($('#Form_AddForm_action_doCreate')){
|
if($('#Form_AddForm_action_doCreate')){
|
||||||
@ -152,6 +153,7 @@ $(document).ready(function() {
|
|||||||
$('input[type=submit]', $form).removeClass('loading');
|
$('input[type=submit]', $form).removeClass('loading');
|
||||||
},
|
},
|
||||||
// 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');
|
||||||
}));
|
}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user