templates/scripts/isEmpty.js.twig line 1

Open in your IDE?
  1. {# templates/base/scripts/isEmpty.js.twig #}
  2. <script>
  3. function isEmpty(field)
  4. {
  5.     if (field == 'undefined' || field == "" || field == 0 || field == undefined)
  6.         return true;
  7.     return false;
  8. }
  9. function isNull(thing)
  10. {
  11.     if (!thing || thing === null || typeof thing === null)
  12.         return true;
  13.     return false;
  14. }
  15. </script>