Parcourir la source

Honors loadAmber deploy option while loading packages through ajax, as jQuery ajax disable cache by default

Laurent Laffont il y a 13 ans
Parent
commit
162b49688e
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      js/amber.js

+ 6 - 1
js/amber.js

@@ -205,7 +205,12 @@ amber = (function() {
 	};
 
 	function loadJSViaJQuery(url, callback) {
-		$.getScript(jsToLoad[0], callback);
+		$.ajax({
+			dataType: "script",
+			url: jsToLoad[0],
+			cache: deploy,
+			success: callback
+		});
 	};
 
 	function writeScriptTag(src) {