set filex as global variable
authorMaciej Tronowski <mtro@man.poznan.pl>
Tue, 14 Apr 2015 10:48:37 +0000 (12:48 +0200)
committerMaciej Tronowski <mtro@man.poznan.pl>
Tue, 14 Apr 2015 10:48:37 +0000 (12:48 +0200)
qcg/templates/qcg/gridftp.html
qcg/templates/qcg/job_new.html

index 67bf34f..52e4826 100644 (file)
     {% include 'filex/source.js.html' %}
 
     <script>
+        var filex = filex || {};
+
         $(function () {
+            'use strict';
+
             var statusTimeout;
 
             String.prototype.endsWith = function(suffix) {
index ebd9afc..966c5d2 100644 (file)
     {% include 'filex/source.js.html' %}
 
     <script>
-        $(function() {
+        var filex = filex || {};
+
+        $(function () {
+            'use strict';
+
             var gridftpButton = $('<button/>', {
                 'type': 'button',
                 'class': 'btn btn-default pull-right',