handle error in directory creation
authorMaciej Tronowski <mtro@man.poznan.pl>
Fri, 10 Apr 2015 10:59:59 +0000 (12:59 +0200)
committerMaciej Tronowski <mtro@man.poznan.pl>
Fri, 10 Apr 2015 10:59:59 +0000 (12:59 +0200)
qcg/templates/qcg/gridftp.html

index 0477aa8..d830b29 100644 (file)
                 $.post($this.attr('action'), $this.serialize(), function(response) {
                     status('Katalog utworzono pomyślnie');
                     filex.reloadFiles();
-                }, 'json')
+                }, 'json').fail(function(xhr) {
+                    status('Wystąpił błąd: ' + xhr.responseJSON.msg);
+                    filex.idle();
+                });
             });
         })
     </script>