fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [16196]


From: nelson . guerra
Subject: [Fmsystem-commits] [16196]
Date: Wed, 25 Jan 2017 22:53:05 -0500 (EST)

Revision: 16196
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16196
Author:   nelson224
Date:     2017-01-25 22:53:05 -0500 (Wed, 25 Jan 2017)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind-2/property/js/portico/import_components.js

Modified: branches/dev-syncromind-2/property/js/portico/import_components.js
===================================================================
--- branches/dev-syncromind-2/property/js/portico/import_components.js  
2017-01-26 03:52:45 UTC (rev 16195)
+++ branches/dev-syncromind-2/property/js/portico/import_components.js  
2017-01-26 03:53:05 UTC (rev 16196)
@@ -216,6 +216,7 @@
                })
                .done(function(result) {
                        JqueryPortico.show_message(4, result);
+                       refresh_tab_files();
                        //$('#import_components_files').prop('disabled', true);
                })
                .fail(function() {
@@ -687,6 +688,23 @@
        );                      
 }
        
+function refresh_tab_files ()
+{
+       $('#multi_upload_file').addClass('fileupload-processing');
+       $.ajax({
+               // Uncomment the following to send cross-domain cookies:
+               //xhrFields: {withCredentials: true},
+               url: $('#multi_upload_file').fileupload('option', 'url'),
+               dataType: 'json',
+               context: $('#multi_upload_file')[0]
+       }).always(function () {
+               $('#multi_upload_file').removeClass('fileupload-processing');
+       }).done(function (result) {
+               $('.presentation').empty();
+               $('#multi_upload_file').fileupload('option', 
'done').call($('#multi_upload_file'), $.Event('done'), {result: result});
+       });     
+}
+
 function valid_new_attribute (code)
 {
        if ($('#name_' + code).val() == '')




reply via email to

[Prev in Thread] Current Thread [Next in Thread]