Browse Source

[core] Display all possible errors when installing all the examples

krish 11 years ago
parent
commit
da9725a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      apps/about/src/about/templates/admin_wizard.mako

+ 5 - 1
apps/about/src/about/templates/admin_wizard.mako

@@ -321,7 +321,11 @@ $(document).ready(function(){
     var button = $(this);
     $(button).button('loading');
     var calls = jQuery.map($("[data-sample-url]"), function(app) {
-      return $.post($(app).data("sample-url"));
+      return $.post($(app).data("sample-url"), function(data) {
+        if (data.status != 0) {
+          $(document).trigger('error', data.message);
+        }
+      });
     });
     $.when.apply(this, calls)
       .then(function() {