Vaibhav (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-bug-905375-vda into lp:openerp-web.

Requested reviews:
  OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
  Bug #905375 in OpenERP Web: "cancel in calendar view"
  https://bugs.launchpad.net/openerp-web/+bug/905375

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-905375-vda/+merge/86263

Close dialog on cancel.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-905375-vda/+merge/86263
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-bug-905375-vda.
=== modified file 'addons/web_calendar/static/src/js/calendar.js'
--- addons/web_calendar/static/src/js/calendar.js	2011-12-16 13:00:00 +0000
+++ addons/web_calendar/static/src/js/calendar.js	2011-12-19 16:24:30 +0000
@@ -423,6 +423,11 @@
         this.form.appendTo(this.$element);
         this.form.on_created.add_last(this.on_form_dialog_saved);
         this.form.on_saved.add_last(this.on_form_dialog_saved);
+        
+        var self = this;
+        this.form.on_button_cancel.add_last(function() {
+            self.close();
+        });
     },
     on_form_dialog_saved: function() {
         var id = this.dataset.ids[this.dataset.index];

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to