|
|
@@ -14,10 +14,19 @@
|
|
|
## See the License for the specific language governing permissions and
|
|
|
## limitations under the License.
|
|
|
|
|
|
-var version = 20;
|
|
|
-importScripts('${ static('desktop/js/autocomplete/sqlParseSupport.js') }' + '?version=' + version);
|
|
|
-importScripts('${ static('desktop/js/autocomplete/sqlAutocompleteParser.js') }' + '?version=' + version);
|
|
|
-importScripts('${ static('desktop/js/sqlFunctions.js') }' + '?version=' + version);
|
|
|
+<%!
|
|
|
+ from desktop import conf
|
|
|
+%>
|
|
|
+
|
|
|
+% if conf.DJANGO_DEBUG_MODE.get():
|
|
|
+importScripts('${ static('desktop/js/autocomplete/sqlParseSupport.js') }' + '?' + Math.random());
|
|
|
+importScripts('${ static('desktop/js/autocomplete/sqlAutocompleteParser.js') }' + '?' + Math.random());
|
|
|
+importScripts('${ static('desktop/js/sqlFunctions.js') }' + '?' + Math.random());
|
|
|
+% else:
|
|
|
+importScripts('${ static('desktop/js/autocomplete/sqlParseSupport.js') }');
|
|
|
+importScripts('${ static('desktop/js/autocomplete/sqlAutocompleteParser.js') }');
|
|
|
+importScripts('${ static('desktop/js/sqlFunctions.js') }');
|
|
|
+% endif
|
|
|
|
|
|
(function () {
|
|
|
|