[IMP] add notification to DataSet.unlink so we can see it, change notification durati...
authorXavier Morel <xmo@openerp.com>
Thu, 7 Apr 2011 15:41:18 +0000 (17:41 +0200)
committerXavier Morel <xmo@openerp.com>
Thu, 7 Apr 2011 15:41:18 +0000 (17:41 +0200)
bzr revid: xmo@openerp.com-20110407154118-leopn5315t974saj

addons/base/static/src/js/chrome.js
addons/base/static/src/js/data.js

index 761ff53..289f680 100644 (file)
@@ -500,7 +500,8 @@ openerp.base.Notification =  openerp.base.Controller.extend({
     init: function(session, element_id) {
         this._super(session, element_id);
         this.$element.notify({
-            speed: 500
+            speed: 500,
+            expires: 1500
         });
     },
     'default': function(title, text) {
index 4d90723..ca9cf83 100644 (file)
@@ -120,7 +120,8 @@ openerp.base.DataSet =  openerp.base.Controller.extend( /** @lends openerp.base.
             //context: this.context,
         }, callback);
     },
-    unlink: function() {
+    unlink: function(ids) {
+        this.notification['default']("Unlink", ids);
     }
 });