gifur 4 лет назад
Родитель
Сommit
614e9d73ea
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      addin/res/ManagerDesktop/js/public.js

+ 3 - 3
addin/res/ManagerDesktop/js/public.js

@@ -146,7 +146,7 @@ $.fn.ajaxSubmit = function (option) {
         if (el.files && el.type === 'file') {
             var files = el.files;
             if (files.length) {
-                for (j = 0; j < files.length; j++) {
+                for (var j = 0; j < files.length; j++) {
                     data.push({ name: el.name, value: files[j], type: el.type });
                 }
             } else {
@@ -1514,7 +1514,7 @@ $(function () {
             var self = this;
             $.each($(selectorS), function (index, selector) {
                 $selector.removeAttr('scrollID');
-                $scrollText = $(selector).find('.scroll_text');
+                var $scrollText = $(selector).find('.scroll_text');
                 if ($scrollText.length === 0) {
                     return;
                 }
@@ -3048,7 +3048,7 @@ function hideSelectedBorder(obj) {
 }
 function checkServerAddress(url) {
     var index = '';
-    rgExp = /^((https|http):\/\/)[a-zA-Z0-9\.\-\[\]\:]+[\:\/]?/;
+    let rgExp = /^((https|http):\/\/)[a-zA-Z0-9\.\-\[\]\:]+[\:\/]?/;
     if (!rgExp.test(url)) {
         return false;
     }