mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed JS notice/alerts in CMS
This commit is contained in:
parent
b92676cc86
commit
7d10ff790c
@ -283,6 +283,7 @@ class LeftAndMain extends Controller {
|
||||
))
|
||||
);
|
||||
|
||||
Requirements::css(SAPPHIRE_ADMIN_DIR . '/thirdparty/jquery-notice/jquery.notice.css');
|
||||
Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery-ui.css');
|
||||
Requirements::css(SAPPHIRE_ADMIN_DIR .'/thirdparty/chosen/chosen/chosen.css');
|
||||
Requirements::css(THIRDPARTY_DIR . '/jstree/themes/apple/style.css');
|
||||
|
@ -242,6 +242,7 @@ jQuery.noConflict();
|
||||
},
|
||||
error: function(xhr, status, e) {
|
||||
contentEl.removeClass('loading');
|
||||
errorMessage(e);
|
||||
}
|
||||
});
|
||||
|
||||
@ -504,15 +505,10 @@ jQuery.noConflict();
|
||||
});
|
||||
}(jQuery));
|
||||
|
||||
// Backwards compatibility
|
||||
var statusMessage = function(text, type) {
|
||||
jQuery.noticeAdd({text: text, type: type});
|
||||
};
|
||||
|
||||
var errorMessage = function(text) {
|
||||
jQuery.noticeAdd({text: text, type: 'error'});
|
||||
};
|
||||
|
||||
returnFalse = function() {
|
||||
return false;
|
||||
};
|
Loading…
Reference in New Issue
Block a user