tryton-sao 7.2.3 → 7.2.4
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 +19 -6
- package/package.json +1 -1
- package/src/sao.js +1 -1
- package/src/tab.js +3 -1
- package/src/view/tree.js +4 -1
- package/src/window.js +9 -2
- package/src/wizard.js +2 -1
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.2.
|
|
6
|
+
__version__: '7.2.4',
|
|
7
7
|
};
|
|
8
8
|
/* eslint-enable no-redeclare */
|
|
9
9
|
|
|
@@ -10797,7 +10797,9 @@ var Sao = {
|
|
|
10797
10797
|
this.menu_buttons[item.id] = menuitem;
|
|
10798
10798
|
link.click(evt => {
|
|
10799
10799
|
evt.preventDefault();
|
|
10800
|
-
|
|
10800
|
+
if (!menuitem.hasClass('disabled')) {
|
|
10801
|
+
this[item.id]();
|
|
10802
|
+
}
|
|
10801
10803
|
});
|
|
10802
10804
|
} else if (!item && previous) {
|
|
10803
10805
|
menuitem = jQuery('<li/>', {
|
|
@@ -21814,7 +21816,10 @@ function eval_pyson(value){
|
|
|
21814
21816
|
if (this.editable && new_) {
|
|
21815
21817
|
td.trigger('click');
|
|
21816
21818
|
}
|
|
21817
|
-
Sao.common.find_focusable_child(td)
|
|
21819
|
+
var child = Sao.common.find_focusable_child(td);
|
|
21820
|
+
if (child) {
|
|
21821
|
+
child.focus();
|
|
21822
|
+
}
|
|
21818
21823
|
}
|
|
21819
21824
|
}
|
|
21820
21825
|
};
|
|
@@ -25827,8 +25832,14 @@ function eval_pyson(value){
|
|
|
25827
25832
|
this.title = title;
|
|
25828
25833
|
this.exclude_field = kwargs.exclude_field || null;
|
|
25829
25834
|
var dialog = new Sao.Dialog(Sao.i18n.gettext(
|
|
25830
|
-
'Search %1', this.title), '', 'lg');
|
|
25835
|
+
'Search %1', this.title), '', 'lg', false);
|
|
25831
25836
|
this.el = dialog.modal;
|
|
25837
|
+
this.el.on('keydown', e => {
|
|
25838
|
+
if (e.which == Sao.common.ESC_KEYCODE) {
|
|
25839
|
+
e.preventDefault();
|
|
25840
|
+
this.response('RESPONSE_CANCEL');
|
|
25841
|
+
}
|
|
25842
|
+
});
|
|
25832
25843
|
|
|
25833
25844
|
jQuery('<button/>', {
|
|
25834
25845
|
'class': 'btn btn-link',
|
|
@@ -25904,7 +25915,8 @@ function eval_pyson(value){
|
|
|
25904
25915
|
if (response_id == 'RESPONSE_OK') {
|
|
25905
25916
|
records = this.screen.current_view.selected_records;
|
|
25906
25917
|
} else if (response_id == 'RESPONSE_APPLY') {
|
|
25907
|
-
this.screen.search_filter(
|
|
25918
|
+
this.screen.search_filter(
|
|
25919
|
+
this.screen.screen_container.get_text());
|
|
25908
25920
|
return;
|
|
25909
25921
|
} else if (response_id == 'RESPONSE_ACCEPT') {
|
|
25910
25922
|
var view_ids = jQuery.extend([], this.view_ids);
|
|
@@ -27975,7 +27987,8 @@ function eval_pyson(value){
|
|
|
27975
27987
|
}
|
|
27976
27988
|
if (!dialog ||
|
|
27977
27989
|
!this.model ||
|
|
27978
|
-
(Sao.main_menu_screen
|
|
27990
|
+
(Sao.main_menu_screen &&
|
|
27991
|
+
(Sao.main_menu_screen.model_name == this.model))) {
|
|
27979
27992
|
is_menu = true;
|
|
27980
27993
|
screen = Sao.main_menu_screen;
|
|
27981
27994
|
} else {
|
package/package.json
CHANGED
package/src/sao.js
CHANGED
package/src/tab.js
CHANGED
|
@@ -158,7 +158,9 @@
|
|
|
158
158
|
this.menu_buttons[item.id] = menuitem;
|
|
159
159
|
link.click(evt => {
|
|
160
160
|
evt.preventDefault();
|
|
161
|
-
|
|
161
|
+
if (!menuitem.hasClass('disabled')) {
|
|
162
|
+
this[item.id]();
|
|
163
|
+
}
|
|
162
164
|
});
|
|
163
165
|
} else if (!item && previous) {
|
|
164
166
|
menuitem = jQuery('<li/>', {
|
package/src/view/tree.js
CHANGED
|
@@ -1323,7 +1323,10 @@
|
|
|
1323
1323
|
if (this.editable && new_) {
|
|
1324
1324
|
td.trigger('click');
|
|
1325
1325
|
}
|
|
1326
|
-
Sao.common.find_focusable_child(td)
|
|
1326
|
+
var child = Sao.common.find_focusable_child(td);
|
|
1327
|
+
if (child) {
|
|
1328
|
+
child.focus();
|
|
1329
|
+
}
|
|
1327
1330
|
}
|
|
1328
1331
|
}
|
|
1329
1332
|
};
|
package/src/window.js
CHANGED
|
@@ -920,8 +920,14 @@
|
|
|
920
920
|
this.title = title;
|
|
921
921
|
this.exclude_field = kwargs.exclude_field || null;
|
|
922
922
|
var dialog = new Sao.Dialog(Sao.i18n.gettext(
|
|
923
|
-
'Search %1', this.title), '', 'lg');
|
|
923
|
+
'Search %1', this.title), '', 'lg', false);
|
|
924
924
|
this.el = dialog.modal;
|
|
925
|
+
this.el.on('keydown', e => {
|
|
926
|
+
if (e.which == Sao.common.ESC_KEYCODE) {
|
|
927
|
+
e.preventDefault();
|
|
928
|
+
this.response('RESPONSE_CANCEL');
|
|
929
|
+
}
|
|
930
|
+
});
|
|
925
931
|
|
|
926
932
|
jQuery('<button/>', {
|
|
927
933
|
'class': 'btn btn-link',
|
|
@@ -997,7 +1003,8 @@
|
|
|
997
1003
|
if (response_id == 'RESPONSE_OK') {
|
|
998
1004
|
records = this.screen.current_view.selected_records;
|
|
999
1005
|
} else if (response_id == 'RESPONSE_APPLY') {
|
|
1000
|
-
this.screen.search_filter(
|
|
1006
|
+
this.screen.search_filter(
|
|
1007
|
+
this.screen.screen_container.get_text());
|
|
1001
1008
|
return;
|
|
1002
1009
|
} else if (response_id == 'RESPONSE_ACCEPT') {
|
|
1003
1010
|
var view_ids = jQuery.extend([], this.view_ids);
|
package/src/wizard.js
CHANGED
|
@@ -316,7 +316,8 @@
|
|
|
316
316
|
}
|
|
317
317
|
if (!dialog ||
|
|
318
318
|
!this.model ||
|
|
319
|
-
(Sao.main_menu_screen
|
|
319
|
+
(Sao.main_menu_screen &&
|
|
320
|
+
(Sao.main_menu_screen.model_name == this.model))) {
|
|
320
321
|
is_menu = true;
|
|
321
322
|
screen = Sao.main_menu_screen;
|
|
322
323
|
} else {
|