isobit-ui 0.2.95 → 0.2.97
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 +26 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.2.
|
|
2
|
+
* isobit-ui v0.2.96
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -6057,9 +6057,9 @@ var resize = function resize() {
|
|
|
6057
6057
|
|
|
6058
6058
|
if (body.children[0].tagName == 'FORM') {
|
|
6059
6059
|
body = body.children[0].children[0];
|
|
6060
|
-
}
|
|
6060
|
+
} //console.log(body);
|
|
6061
|
+
|
|
6061
6062
|
|
|
6062
|
-
console.log(body);
|
|
6063
6063
|
buildPopupMenu(body);
|
|
6064
6064
|
}
|
|
6065
6065
|
|
|
@@ -7912,23 +7912,33 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7912
7912
|
}
|
|
7913
7913
|
}
|
|
7914
7914
|
|
|
7915
|
-
var db =
|
|
7915
|
+
var db = _$1.db;
|
|
7916
7916
|
var objectStore = db.transaction([store], "readwrite").objectStore(store);
|
|
7917
7917
|
|
|
7918
7918
|
if (!o.id) {
|
|
7919
7919
|
o.tmpId = 1 * new Date();
|
|
7920
|
-
o.id = -o.tmpId; //add new item to start to array
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7920
|
+
o.id = -o.tmpId; //add new item to start to array
|
|
7921
|
+
|
|
7922
|
+
var objectStoreRequest = objectStore.add(o);
|
|
7923
|
+
|
|
7924
|
+
objectStoreRequest.onsuccess = function (e) {
|
|
7925
|
+
console.log(e);
|
|
7926
|
+
console.log('saved to ' + store);
|
|
7927
|
+
storedList.unshift(o);
|
|
7928
|
+
me.$emit('stored', o, storedList, objectStore);
|
|
7929
|
+
if (me.app && me.app.toast) me.app.toast('El registro fue grabado exitosamente!');
|
|
7930
|
+
o0.tmpId = o.tmpId;
|
|
7931
|
+
o0.id = o.id;
|
|
7932
|
+
me.close({
|
|
7933
|
+
success: true,
|
|
7934
|
+
data: o
|
|
7935
|
+
});
|
|
7936
|
+
};
|
|
7937
|
+
|
|
7938
|
+
objectStoreRequest.onerror = function (e) {
|
|
7939
|
+
if (me.app && me.app.toast) me.app.toast('Error!');
|
|
7940
|
+
console.log(e);
|
|
7941
|
+
};
|
|
7932
7942
|
} else {
|
|
7933
7943
|
delete o["synchronized"];
|
|
7934
7944
|
var item = objectStore.get(o.tmpId);
|