Эх сурвалжийг харах

Style file inputs (app wide)

Vijayakrishnan 3 жил өмнө
parent
commit
cc434e5e3c

+ 3 - 0
public/js/stag-popup.js

@@ -12,6 +12,7 @@ function showStagPopup(_key, _noAutoFocus) {
     stagPopup.addClass('show');
     stagPopup.addClass('show');
     stagPopup.find('[moe][initialized]').removeAttr('initialized');
     stagPopup.find('[moe][initialized]').removeAttr('initialized');
     initMoes();
     initMoes();
+    initFileInputs();
     if(!_noAutoFocus) {
     if(!_noAutoFocus) {
         window.setTimeout(function() {
         window.setTimeout(function() {
             stagPopup.find('input[type="text"]:not([readonly]):visible,select:visible').first().focus();
             stagPopup.find('input[type="text"]:not([readonly]):visible,select:visible').first().focus();
@@ -139,6 +140,7 @@ function openDynamicStagPopup(_url, initer, title, updateParent, style = '', rep
         runMCInitializer('pro-suggest'); // not the place for this! Move to better place.
         runMCInitializer('pro-suggest'); // not the place for this! Move to better place.
         initMoes();
         initMoes();
         hideMask();
         hideMask();
+        initFileInputs();
     }).fail(() => {
     }).fail(() => {
         toastr.error('Unable to open ' + _url);
         toastr.error('Unable to open ' + _url);
         hideMask();
         hideMask();
@@ -168,6 +170,7 @@ function refreshDynamicStagPopup(_url = false) {
             runMCInitializer('pro-suggest');
             runMCInitializer('pro-suggest');
             initMoes();
             initMoes();
             hideMask();
             hideMask();
+            initFileInputs();
         });
         });
     }
     }
     return false;
     return false;