cronapp-lib-js 3.0.0-SP.5 → 3.0.0-SP.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9009,6 +9009,10 @@
9009
9009
  } else {
9010
9010
  field.call(source, value);
9011
9011
  }
9012
+ // INICIO FIX CRONAPP-12841
9013
+ } else if (field !== undefined && field !== '') {
9014
+ source.set(this.path, field);
9015
+ // FIM FIX CRONAPP-12841
9012
9016
  } else {
9013
9017
  source.set(this.path, value);
9014
9018
  }
@@ -22942,7 +22946,7 @@
22942
22946
  that._trigger(ACTIVATE);
22943
22947
  //BEGIN FIX_032
22944
22948
  //NEW FIX_032
22945
- if (that.options && that.options.anchor && that.options.anchor.hasClass('cronDynamicSelect')) {
22949
+ if (that.options && that.options.anchor && that.options.anchor.hasClass && that.options.anchor.hasClass('cronDynamicSelect')) {
22946
22950
  let $mainView = $('[ui-view]');
22947
22951
  if ($mainView.length) {
22948
22952
  that._mainView = $mainView[$mainView.length - 1];
@@ -494,7 +494,11 @@ StimulsoftHelper.prototype.overrideMethods = function() {
494
494
  d = "2015-12-31";
495
495
  }
496
496
  if (d.length < 5 || (!d.match(TIME_PATTERN) && d.indexOf('-')) == -1) {
497
- return d;
497
+ try {
498
+ return new Stimulsoft.System.DateTime(new Date(d));
499
+ } catch (e) {
500
+ return d;
501
+ }
498
502
  }
499
503
 
500
504
  if (typeof logError === 'undefined') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cronapp-lib-js",
3
- "version": "3.0.0-SP.5",
3
+ "version": "3.0.0-SP.50",
4
4
  "description": "Javascript library for CronApp's projects",
5
5
  "main": "index.js",
6
6
  "scripts": {