diff options
| author | Fabien Meghazi <fme@openerp.com> | 2011-11-15 13:30:59 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2011-11-15 13:30:59 +0100 |
| commit | db2c85635b00401373d37873ae4df7d75285c45a (patch) | |
| tree | 73bc22b9b3612961cddb03e4a524e077a3d5cb42 /addons/web_dashboard/static/src/js/dashboard.js | |
| parent | 2b7a072a3e7a4505e33c5f25e059607f3039b06d (diff) | |
[IMP] Upgraded unserscore version from 1.1.7 to 1.2.2 and underscore.string from 1.1.6 to 1.2.0
WARNING: underscore string does not mixin to underscore by default. Use _.str.*
bzr revid: fme@openerp.com-20111115123059-k31lhp0db2d8h22k
Diffstat (limited to 'addons/web_dashboard/static/src/js/dashboard.js')
| -rw-r--r-- | addons/web_dashboard/static/src/js/dashboard.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_dashboard/static/src/js/dashboard.js b/addons/web_dashboard/static/src/js/dashboard.js index e629a4a6ef5..52e1175065e 100644 --- a/addons/web_dashboard/static/src/js/dashboard.js +++ b/addons/web_dashboard/static/src/js/dashboard.js @@ -103,7 +103,7 @@ openerp.web.form.DashBoard = openerp.web.form.Widget.extend({ }, function(result) { self.actions_attrs[aid] = { name: aid, - string: _.trim(result.result.name) + string: _.str.trim(result.result.name) }; qdict.action = { attrs : self.actions_attrs[aid] @@ -420,7 +420,7 @@ openerp.web_dashboard.ApplicationTiles = openerp.web.View.extend({ var Installer = new openerp.web.DataSet(this, 'base.setup.installer'); Installer.call('default_get', [], function (installed_modules) { var installed = _(installed_modules).any(function (active, name) { - return _.startsWith(name, 'cat') && active; }); + return _.str.startsWith(name, 'cat') && active; }); if(installed) { self.do_display_root_menu(); @@ -521,7 +521,7 @@ openerp.web_dashboard.Widget = openerp.web.View.extend(/** @lends openerp.web_da }, on_widget_loaded: function (widgets) { var widget = widgets[0]; - var url = _.sprintf( + var url = _.str.sprintf( '/web_dashboard/widgets/content?session_id=%s&widget_id=%d', this.session.session_id, widget.id); this.$element.html(QWeb.render('HomeWidget.content', { |
