Handle empty responses and errors for tag listings
[blerg.git] / www / jssrc / blerg / Blerg.js
index 9285d2b..352962d 100644 (file)
@@ -1,3 +1,6 @@
+// Listen for onsubmit events
+enyo.dispatcher.listen(document, "submit");
+
 enyo.kind({
     name: "blerg.Blerg",
     kind: "Control",
@@ -11,6 +14,7 @@ enyo.kind({
         onPostVisibility: "postVisibilityUpdate",
         onReload: "sendReload",
         onShowChangePassword: "showChangePassword",
+        onClearFeedStatus: "clearFeedStatus"
     },
     components: [
         {classes: "blerg-header", components: [
@@ -96,5 +100,8 @@ enyo.kind({
     },
     showChangePassword: function() {
         this.$.passwdDialog.show();
+    },
+    clearFeedStatus: function() {
+        this.$.controls.waterfall('onClearFeedStatus');
     }
 });