tryton-sao 7.0.45 → 7.0.46
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/CHANGELOG +5 -0
- package/dist/tryton-sao.js +11 -7
- package/dist/tryton-sao.min.js +2 -2
- package/package.json +1 -1
- package/src/sao.js +5 -5
- package/src/tab.js +6 -2
package/CHANGELOG
CHANGED
package/dist/tryton-sao.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
/* eslint-disable no-redeclare */
|
|
5
5
|
var Sao = {
|
|
6
|
-
__version__: '7.0.
|
|
6
|
+
__version__: '7.0.46',
|
|
7
7
|
};
|
|
8
8
|
/* eslint-enable no-redeclare */
|
|
9
9
|
|
|
@@ -1311,13 +1311,13 @@ var Sao = {
|
|
|
1311
1311
|
var modalZIndex = 1040;
|
|
1312
1312
|
jQuery('.modal.in').each(function(index) {
|
|
1313
1313
|
var $modal = jQuery(this);
|
|
1314
|
-
modalZIndex
|
|
1314
|
+
modalZIndex += 10;
|
|
1315
1315
|
$modal.css('zIndex', modalZIndex);
|
|
1316
|
-
$modal.
|
|
1317
|
-
.css('zIndex', modalZIndex -
|
|
1316
|
+
$modal.prev('.modal-backdrop.in').addClass('hidden')
|
|
1317
|
+
.css('zIndex', modalZIndex - 5);
|
|
1318
1318
|
});
|
|
1319
1319
|
jQuery('.modal.in:visible:last').focus()
|
|
1320
|
-
.
|
|
1320
|
+
.prev('.modal-backdrop.in').removeClass('hidden');
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
1323
|
}());
|
|
@@ -11476,7 +11476,9 @@ var Sao = {
|
|
|
11476
11476
|
});
|
|
11477
11477
|
},
|
|
11478
11478
|
switch_: function() {
|
|
11479
|
-
return this.modified_save().then(
|
|
11479
|
+
return this.modified_save().then(
|
|
11480
|
+
() => this.screen.switch_view(),
|
|
11481
|
+
(result) => result ? this.screen.switch_view() : null);
|
|
11480
11482
|
},
|
|
11481
11483
|
reload: function(test_modified=true) {
|
|
11482
11484
|
const reload = () => {
|
|
@@ -11606,10 +11608,12 @@ var Sao = {
|
|
|
11606
11608
|
revision = revisions[revisions.length - 1][0];
|
|
11607
11609
|
}
|
|
11608
11610
|
if (revision != this.screen.context._datetime) {
|
|
11609
|
-
this.screen.clear();
|
|
11610
11611
|
// Update group context that will be propagated by
|
|
11611
11612
|
// recreating new group
|
|
11612
11613
|
this.screen.group._context._datetime = revision;
|
|
11614
|
+
// clear after updating the datetime such that the tab
|
|
11615
|
+
// compute already the right URL
|
|
11616
|
+
this.screen.clear();
|
|
11613
11617
|
if (this.screen.current_view.view_type != 'form') {
|
|
11614
11618
|
this.screen.search_filter(
|
|
11615
11619
|
this.screen.screen_container
|