entry.js 719 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Copyright (c) UNA, Inc - https://una.io
  3. * MIT License - https://opensource.org/licenses/MIT
  4. *
  5. * @defgroup Events Events
  6. * @ingroup UnaModules
  7. *
  8. * @{
  9. */
  10. function BxJobsEntry(oOptions) {
  11. BxBaseModGroupsEntry.call(this, oOptions);
  12. this._sObjName = oOptions.sObjName == undefined ? 'oBxJobsEntry' : oOptions.sObjName;
  13. var $this = this;
  14. $(document).ready(function() {
  15. $this.init();
  16. });
  17. }
  18. BxJobsEntry.prototype = Object.create(BxBaseModGroupsEntry.prototype);
  19. BxJobsEntry.prototype.constructor = BxJobsEntry;
  20. BxJobsEntry.prototype.init = function() {
  21. if ('UTC' == $("[name = 'timezone']").val())
  22. $("[name = 'timezone']").val(moment.tz.guess());
  23. };
  24. /** @} */