Ver código fonte

Merge pull request #3581 from saurabh6790/date_legacy_function

[fix] add date into legacy support for js globals
version-14
Makarand Bauskar 8 anos atrás
committed by GitHub
pai
commit
4b8b99030e
1 arquivos alterados com 6 adições e 0 exclusões
  1. +6
    -0
      frappe/public/js/frappe/misc/datetime.js

+ 6
- 0
frappe/public/js/frappe/misc/datetime.js Ver arquivo

@@ -163,6 +163,12 @@ Object.defineProperties(window, {
return frappe.datetime;
}
},
'date': {
get: function() {
console.warn('Please use `frappe.datetime` instead of `date`. It will be deprecated soon.');
return frappe.datetime;
}
},
'get_today': {
get: function() {
console.warn('Please use `frappe.datetime.get_today` instead of `get_today`. It will be deprecated soon.');


Carregando…
Cancelar
Salvar