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

index 877c58a..2926920 100644 (file)
@@ -28,7 +28,9 @@ DialogConfirm=new XObject({
     listeners : {
         "response":function (self, response_id) {
            this.el.hide();
-            if (response_id > 0) {
+        print("RESPOSE: " + response_id);
+            if (response_id == -8) { //yes!
+           print("CALL SUCCES?")
               this.success();
             }
         },