@xuda.io/runtime-bundle 1.0.1057 → 1.0.1059
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/js/xuda-runtime-slim.js
CHANGED
|
@@ -12670,14 +12670,18 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12670
12670
|
new_$div.appendTo($container);
|
|
12671
12671
|
} else {
|
|
12672
12672
|
// iterate the container node
|
|
12673
|
-
let $last_elm_found;
|
|
12673
|
+
let $last_elm_found = [];
|
|
12674
12674
|
$.each($container.data().xuData.node.children, (item_key, item_val) => {
|
|
12675
12675
|
const $elm = $(`[xu-node-id="${item_val.id}"]`);
|
|
12676
12676
|
if ($elm.length) {
|
|
12677
12677
|
$last_elm_found = $elm;
|
|
12678
12678
|
}
|
|
12679
|
-
if (
|
|
12680
|
-
|
|
12679
|
+
if (keyP == item_key) {
|
|
12680
|
+
if ($last_elm_found.length) {
|
|
12681
|
+
new_$div.after($last_elm_found);
|
|
12682
|
+
} else {
|
|
12683
|
+
$container.prepend(new_$div);
|
|
12684
|
+
}
|
|
12681
12685
|
}
|
|
12682
12686
|
});
|
|
12683
12687
|
}
|
|
@@ -10395,14 +10395,18 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10395
10395
|
new_$div.appendTo($container);
|
|
10396
10396
|
} else {
|
|
10397
10397
|
// iterate the container node
|
|
10398
|
-
let $last_elm_found;
|
|
10398
|
+
let $last_elm_found = [];
|
|
10399
10399
|
$.each($container.data().xuData.node.children, (item_key, item_val) => {
|
|
10400
10400
|
const $elm = $(`[xu-node-id="${item_val.id}"]`);
|
|
10401
10401
|
if ($elm.length) {
|
|
10402
10402
|
$last_elm_found = $elm;
|
|
10403
10403
|
}
|
|
10404
|
-
if (
|
|
10405
|
-
|
|
10404
|
+
if (keyP == item_key) {
|
|
10405
|
+
if ($last_elm_found.length) {
|
|
10406
|
+
new_$div.after($last_elm_found);
|
|
10407
|
+
} else {
|
|
10408
|
+
$container.prepend(new_$div);
|
|
10409
|
+
}
|
|
10406
10410
|
}
|
|
10407
10411
|
});
|
|
10408
10412
|
}
|