isobit-ui 0.0.423 → 0.0.426
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 +13 -6
- 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.426
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5885,9 +5885,11 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
5885
5885
|
var action = f.action;
|
|
5886
5886
|
if (!action) action = window.location.pathname;
|
|
5887
5887
|
var t = me.$children[0].$children[0];
|
|
5888
|
-
var
|
|
5889
|
-
|
|
5890
|
-
if (
|
|
5888
|
+
var selected = me.getSelected()[0];
|
|
5889
|
+
var id = selected[t.rowKey];
|
|
5890
|
+
if (selected.tmpId) id = -selected.tmpId;
|
|
5891
|
+
console.log(selected);
|
|
5892
|
+
if (me.getSelectedId) id = me.getSelectedId(selected);
|
|
5891
5893
|
|
|
5892
5894
|
if (window.app) {
|
|
5893
5895
|
me.open(action + '/' + id + '/edit');
|
|
@@ -5939,7 +5941,10 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
5939
5941
|
}
|
|
5940
5942
|
}
|
|
5941
5943
|
|
|
5942
|
-
if (c)
|
|
5944
|
+
if (c) {
|
|
5945
|
+
if (me.app && me.app.toast) me.app.toast('El registro fue grabado correctamente!');else me.MsgBox(c + ' Registros eliminado');
|
|
5946
|
+
}
|
|
5947
|
+
|
|
5943
5948
|
t.rowSelect(null, -1);
|
|
5944
5949
|
t.selected = [];
|
|
5945
5950
|
me.$emit('destroyed', ele);
|
|
@@ -6320,13 +6325,15 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6320
6325
|
var objectStore = window._.db.transaction([store], "readwrite").objectStore(store);
|
|
6321
6326
|
|
|
6322
6327
|
var item = objectStore.get(o.tmpId);
|
|
6323
|
-
o.tmpSynchronized = 1;
|
|
6324
6328
|
|
|
6325
6329
|
if (data.id) {
|
|
6326
6330
|
o.id = data.id;
|
|
6327
6331
|
o0.id = o.id;
|
|
6328
6332
|
}
|
|
6329
6333
|
|
|
6334
|
+
o0.tmpSynchronized = 1;
|
|
6335
|
+
console.log(o0);
|
|
6336
|
+
|
|
6330
6337
|
item.onsuccess = function () {
|
|
6331
6338
|
if (item.result) {
|
|
6332
6339
|
objectStore.put(o);
|