Browse Source

HUE-5363 [fb] Restore from trash form should submit via AJAX

Enrico Berti 9 năm trước cách đây
mục cha
commit
889b490

+ 8 - 0
apps/filebrowser/src/filebrowser/templates/listdir_components.mako

@@ -1638,6 +1638,14 @@ from django.utils.translation import ugettext as _
           keyboard:true,
           show:true
         });
+
+        $('#restoreTrashForm').ajaxForm({
+          dataType:  'json',
+          success: function() {
+            $("#restoreTrashModal").modal('hide');
+            self.retrieveData();
+          }
+        });
       };
 
       self.purgeTrash = function(formElement) {