isobit-ui 0.0.339 → 0.0.342
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.
- package/dist/index.js +8 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.0.
|
|
2
|
+
* isobit-ui v0.0.342
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -6382,7 +6382,6 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6382
6382
|
save: function save() {
|
|
6383
6383
|
try {
|
|
6384
6384
|
var _exit2 = false;
|
|
6385
|
-
var objectStore;
|
|
6386
6385
|
|
|
6387
6386
|
var _this4 = this;
|
|
6388
6387
|
|
|
@@ -6431,7 +6430,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6431
6430
|
}
|
|
6432
6431
|
|
|
6433
6432
|
var db = window._.db;
|
|
6434
|
-
objectStore = db.transaction([storage], "readwrite").objectStore(storage);
|
|
6433
|
+
var objectStore = db.transaction([storage], "readwrite").objectStore(storage);
|
|
6435
6434
|
|
|
6436
6435
|
if (!o.id) {
|
|
6437
6436
|
o.id = -new Date();
|
|
@@ -6477,9 +6476,12 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6477
6476
|
if (_exit2) return _result;
|
|
6478
6477
|
axios__default['default'].post(action, o).then(function (result) {
|
|
6479
6478
|
var data = result.data;
|
|
6480
|
-
console.log(11);
|
|
6481
6479
|
|
|
6482
6480
|
if (o.tmpId) {
|
|
6481
|
+
var storage = me.$children[0].storage;
|
|
6482
|
+
|
|
6483
|
+
var objectStore = window._.db.transaction([storage], "readwrite").objectStore(storage);
|
|
6484
|
+
|
|
6483
6485
|
var item = objectStore.get(o.tmpId);
|
|
6484
6486
|
o.tmpSynchronized = 1;
|
|
6485
6487
|
if (data.id) o.id = data.id;
|
|
@@ -6499,7 +6501,6 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6499
6501
|
};
|
|
6500
6502
|
}
|
|
6501
6503
|
|
|
6502
|
-
console.log(22);
|
|
6503
6504
|
me.MsgBox('El registro fue grabado exitosamente!', function () {
|
|
6504
6505
|
me.close({
|
|
6505
6506
|
success: true,
|
|
@@ -6507,6 +6508,8 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6507
6508
|
});
|
|
6508
6509
|
});
|
|
6509
6510
|
})["catch"](function (r) {
|
|
6511
|
+
console.log(r);
|
|
6512
|
+
|
|
6510
6513
|
if (r.response) {
|
|
6511
6514
|
var l, e;
|
|
6512
6515
|
|