mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Setting entwine warning level outside of entwine block, as it changes the meaning of the $ alias and doesn't apply the new level
This commit is contained in:
parent
f57caecd5a
commit
483704c894
@ -4,6 +4,9 @@
|
||||
(function($) {
|
||||
|
||||
$.metadata.setType('html5');
|
||||
|
||||
// setup jquery.entwine
|
||||
$.entwine.warningLevel = $.entwine.WARN_LEVEL_BESTPRACTISE;
|
||||
|
||||
$.entwine('ss', function($){
|
||||
|
||||
@ -29,10 +32,7 @@
|
||||
spinner.show();
|
||||
}
|
||||
$(window).bind('resize', positionLoadingSpinner).trigger('resize');
|
||||
|
||||
// setup jquery.entwine
|
||||
$.entwine.warningLevel = $.entwine.WARN_LEVEL_BESTPRACTISE;
|
||||
|
||||
|
||||
// global ajax error handlers
|
||||
$.ajaxSetup({
|
||||
error: function(xmlhttp, status, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user