Browse Source

Add inList

version-14
Faris Ansari 8 years ago
parent
commit
bcf060dba0
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      frappe/public/js/frappe/misc/number_format.js

+ 8
- 0
frappe/public/js/frappe/misc/number_format.js View File

@@ -204,6 +204,14 @@ function in_list(list, item) {
return false;
}

// Proxy for in_list
Object.defineProperty(window, 'inList', {
get: function() {
console.warn('Please use `in_list` instead of `inList`. It will be deprecated soon.');
return in_list;
}
});

function remainder(numerator, denominator, precision) {
precision = cint(precision);
var multiplier = Math.pow(10, precision);


Loading…
Cancel
Save