Sample/DialogConfirm.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 05:00:31 +0000 (13:00 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 05:00:31 +0000 (13:00 +0800)
Sample/DialogConfirm.js

index 8276f73..877c58a 100644 (file)
@@ -26,15 +26,15 @@ DialogConfirm=new XObject({
     use_markup : true,
     text : "-",
     listeners : {
-        "destroy_event":function (self, event) {
-            this.el.hide();
-            return true;
-        },
         "response":function (self, response_id) {
            this.el.hide();
             if (response_id > 0) {
               this.success();
             }
+        },
+        "delete_event":function (self, event) {
+            this.el.hide();
+            return true;
         }
     }
 });