diff options
| author | Vidhin Mehta (OpenERP) <vme@tinyerp.com> | 2012-06-22 10:41:16 +0530 |
|---|---|---|
| committer | Vidhin Mehta (OpenERP) <vme@tinyerp.com> | 2012-06-22 10:41:16 +0530 |
| commit | 9154d21065a6930443a70340f613c2ae40ae1bcd (patch) | |
| tree | 651c1a1616e0d1a85abafa4789f2e284dc9c1c1c /addons/web/static/src | |
| parent | 9c8d325d97fd84884e8eef6ff79458cb0709f3c9 (diff) | |
[IMP]remove console
bzr revid: vme@tinyerp.com-20120622051116-1uowhyk27ffh34wc
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/search.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index 80214fe20ba..a93633cb322 100644 --- a/addons/web/static/src/js/search.js +++ b/addons/web/static/src/js/search.js @@ -1671,14 +1671,12 @@ instance.web.search.AddToDashboard = instance.web.search.Input.extend({ var dashbaord_menu = instance.webclient.menu.data.data.children,self = this, map_data = function(result){ _.detect(dashbaord_menu,function(dash){ - var id = _.pluck(dash.children,"id"); - var indexof = _.indexOf(id, result.res_id); + var id = _.pluck(dash.children,"id"),indexof = _.indexOf(id, result.res_id); if(indexof !== -1){ self.dashboard_data = dash.children[indexof].children - console.log(self.dashboard_data); + self.data_loaded.resolve(); return; } - self.data_loaded.resolve(); }); }; return new instance.web.Model('ir.model.data') |
