tryton-sao 7.2.11 → 7.2.12

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 CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ Version 7.2.12 - 2024-12-16
3
+ ---------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 7.2.11 - 2024-12-01
3
8
  ---------------------------
4
9
  * Bug fixes (see mercurial logs for details)
@@ -3,7 +3,7 @@
3
3
 
4
4
  /* eslint-disable no-redeclare */
5
5
  var Sao = {
6
- __version__: '7.2.11',
6
+ __version__: '7.2.12',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
@@ -15080,7 +15080,6 @@ function eval_pyson(value){
15080
15080
  var group = new Sao.View.Form.Container(
15081
15081
  Number(node.getAttribute('col') || 4));
15082
15082
  this.view.containers.push(group);
15083
- this.parse_child(node, group);
15084
15083
 
15085
15084
  if (attributes.xalign === undefined) {
15086
15085
  attributes.xalign = 0.5;
@@ -15105,6 +15104,9 @@ function eval_pyson(value){
15105
15104
 
15106
15105
  this.view.state_widgets.push(widget);
15107
15106
  this.container.add(widget, attributes);
15107
+ // Parse the children at the end to preserve the order of the state
15108
+ // widgets
15109
+ this.parse_child(node, group);
15108
15110
  },
15109
15111
  _parse_hpaned: function(node, attributes) {
15110
15112
  this._parse_paned(node, attributes, 'horizontal');
@@ -19354,7 +19356,8 @@ function eval_pyson(value){
19354
19356
  },
19355
19357
  set_readonly: function(readonly) {
19356
19358
  Sao.View.Form.Binary._super.set_readonly.call(this, readonly);
19357
- this.but_select.prop('disabled', readonly);
19359
+ this.but_select.toggleClass('disabled', readonly);
19360
+ this.input_select.toggle(!readonly);
19358
19361
  this.but_clear.prop('disabled', readonly);
19359
19362
  if (this.text) {
19360
19363
  this.text.prop('readonly', readonly);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "tryton-sao",
3
3
  "title": "sao",
4
4
  "description": "Tryton webclient",
5
- "version": "7.2.11",
5
+ "version": "7.2.12",
6
6
  "homepage": "http://www.tryton.org/",
7
7
  "author": {
8
8
  "name": "Tryton"
package/src/sao.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  /* eslint-disable no-redeclare */
5
5
  var Sao = {
6
- __version__: '7.2.11',
6
+ __version__: '7.2.12',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
package/src/view/form.js CHANGED
@@ -230,7 +230,6 @@ function eval_pyson(value){
230
230
  var group = new Sao.View.Form.Container(
231
231
  Number(node.getAttribute('col') || 4));
232
232
  this.view.containers.push(group);
233
- this.parse_child(node, group);
234
233
 
235
234
  if (attributes.xalign === undefined) {
236
235
  attributes.xalign = 0.5;
@@ -255,6 +254,9 @@ function eval_pyson(value){
255
254
 
256
255
  this.view.state_widgets.push(widget);
257
256
  this.container.add(widget, attributes);
257
+ // Parse the children at the end to preserve the order of the state
258
+ // widgets
259
+ this.parse_child(node, group);
258
260
  },
259
261
  _parse_hpaned: function(node, attributes) {
260
262
  this._parse_paned(node, attributes, 'horizontal');
@@ -4504,7 +4506,8 @@ function eval_pyson(value){
4504
4506
  },
4505
4507
  set_readonly: function(readonly) {
4506
4508
  Sao.View.Form.Binary._super.set_readonly.call(this, readonly);
4507
- this.but_select.prop('disabled', readonly);
4509
+ this.but_select.toggleClass('disabled', readonly);
4510
+ this.input_select.toggle(!readonly);
4508
4511
  this.but_clear.prop('disabled', readonly);
4509
4512
  if (this.text) {
4510
4513
  this.text.prop('readonly', readonly);