bzr revid: nicolas.vanhoren@openerp.com-
20120417115805-z74z6sqdzwkvj0kw
-openerp.web.dates = function(openerp) {
+openerp.web.dates = function(instance) {
/**
* Converts a string to a Date javascript object using OpenERP's
/**
* Converts a string to a Date javascript object using OpenERP's
* @param {String} str A string representing a datetime.
* @returns {Date}
*/
* @param {String} str A string representing a datetime.
* @returns {Date}
*/
-openerp.web.str_to_datetime = function(str) {
+instance.web.str_to_datetime = function(str) {
* @param {String} str A string representing a date.
* @returns {Date}
*/
* @param {String} str A string representing a date.
* @returns {Date}
*/
-openerp.web.str_to_date = function(str) {
+instance.web.str_to_date = function(str) {
* @param {String} str A string representing a time.
* @returns {Date}
*/
* @param {String} str A string representing a time.
* @returns {Date}
*/
-openerp.web.str_to_time = function(str) {
+instance.web.str_to_time = function(str) {
* @param {Date} obj
* @returns {String} A string representing a datetime.
*/
* @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;
}
if (!obj) {
return false;
}
* @param {Date} obj
* @returns {String} A string representing a date.
*/
* @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;
}
if (!obj) {
return false;
}
* @param {Date} obj
* @returns {String} A string representing a time.
*/
* @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;
}
if (!obj) {
return false;
}