summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/dates.js
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-04-17 13:58:05 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-04-17 13:58:05 +0200
commitabd76257a9cdd858d6f8a00218428a93e6e4be1a (patch)
tree3ba65230c201c30c166ba14fa4ea38694e0950d3 /addons/web/static/src/js/dates.js
parentd5ae31540905b1e4c4eab5156d0182ddb2dd408d (diff)
[imp] refactored dates.js
bzr revid: nicolas.vanhoren@openerp.com-20120417115805-z74z6sqdzwkvj0kw
Diffstat (limited to 'addons/web/static/src/js/dates.js')
-rw-r--r--addons/web/static/src/js/dates.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/addons/web/static/src/js/dates.js b/addons/web/static/src/js/dates.js
index d61223113f8..3db48c8412a 100644
--- a/addons/web/static/src/js/dates.js
+++ b/addons/web/static/src/js/dates.js
@@ -1,5 +1,5 @@
-openerp.web.dates = function(openerp) {
+openerp.web.dates = function(instance) {
/**
* Converts a string to a Date javascript object using OpenERP's
@@ -11,7 +11,7 @@ openerp.web.dates = function(openerp) {
* @param {String} str A string representing a datetime.
* @returns {Date}
*/
-openerp.web.str_to_datetime = function(str) {
+instance.web.str_to_datetime = function(str) {
if(!str) {
return str;
}
@@ -38,7 +38,7 @@ openerp.web.str_to_datetime = function(str) {
* @param {String} str A string representing a date.
* @returns {Date}
*/
-openerp.web.str_to_date = function(str) {
+instance.web.str_to_date = function(str) {
if(!str) {
return str;
}
@@ -65,7 +65,7 @@ openerp.web.str_to_date = function(str) {
* @param {String} str A string representing a time.
* @returns {Date}
*/
-openerp.web.str_to_time = function(str) {
+instance.web.str_to_time = function(str) {
if(!str) {
return str;
}
@@ -104,7 +104,7 @@ var zpad = function(str, size) {
* @param {Date} obj
* @returns {String} A string representing a datetime.
*/
-openerp.web.datetime_to_str = function(obj) {
+instance.web.datetime_to_str = function(obj) {
if (!obj) {
return false;
}
@@ -124,7 +124,7 @@ openerp.web.datetime_to_str = function(obj) {
* @param {Date} obj
* @returns {String} A string representing a date.
*/
-openerp.web.date_to_str = function(obj) {
+instance.web.date_to_str = function(obj) {
if (!obj) {
return false;
}
@@ -143,7 +143,7 @@ openerp.web.date_to_str = function(obj) {
* @param {Date} obj
* @returns {String} A string representing a time.
*/
-openerp.web.time_to_str = function(obj) {
+instance.web.time_to_str = function(obj) {
if (!obj) {
return false;
}