tryton-sao 6.0.41 → 6.0.42
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.css +2 -2
- package/dist/tryton-sao.js +19 -13
- package/dist/tryton-sao.min.css +2 -2
- package/dist/tryton-sao.min.js +2 -2
- package/package.json +1 -1
- package/src/sao.less +1 -1
- package/src/view/form.js +19 -13
package/CHANGELOG
CHANGED
package/dist/tryton-sao.css
CHANGED
|
@@ -9882,8 +9882,8 @@ img.icon {
|
|
|
9882
9882
|
min-height: 150px;
|
|
9883
9883
|
max-height: 300px;
|
|
9884
9884
|
}
|
|
9885
|
-
.form .form-text
|
|
9886
|
-
.form .form-richtext
|
|
9885
|
+
.form .form-text textarea,
|
|
9886
|
+
.form .form-richtext textarea,
|
|
9887
9887
|
.form .form-text .richtext,
|
|
9888
9888
|
.form .form-richtext .richtext {
|
|
9889
9889
|
height: 100%;
|
package/dist/tryton-sao.js
CHANGED
|
@@ -16253,10 +16253,13 @@ function eval_pyson(value){
|
|
|
16253
16253
|
this.el = jQuery('<div/>', {
|
|
16254
16254
|
'class': this.class_
|
|
16255
16255
|
});
|
|
16256
|
+
this.group = jQuery('<div/>', {
|
|
16257
|
+
'class': 'input-group',
|
|
16258
|
+
}).appendTo(this.el);
|
|
16256
16259
|
this.input = this.labelled = jQuery('<textarea/>', {
|
|
16257
16260
|
'class': 'form-control input-sm mousetrap',
|
|
16258
16261
|
'name': attributes.name,
|
|
16259
|
-
}).appendTo(this.
|
|
16262
|
+
}).appendTo(this.group);
|
|
16260
16263
|
this.input.change(this.focus_out.bind(this));
|
|
16261
16264
|
if (this.attributes.translate) {
|
|
16262
16265
|
var button = jQuery('<button/>', {
|
|
@@ -16265,7 +16268,7 @@ function eval_pyson(value){
|
|
|
16265
16268
|
'aria-label': Sao.i18n.gettext('Translate')
|
|
16266
16269
|
}).appendTo(jQuery('<span/>', {
|
|
16267
16270
|
'class': 'input-group-btn'
|
|
16268
|
-
}).appendTo(this.
|
|
16271
|
+
}).appendTo(this.group));
|
|
16269
16272
|
button.append(
|
|
16270
16273
|
Sao.common.ICONFACTORY.get_icon_img('tryton-translate'));
|
|
16271
16274
|
button.click(this.translate.bind(this));
|
|
@@ -16339,13 +16342,16 @@ function eval_pyson(value){
|
|
|
16339
16342
|
'class': 'panel-heading',
|
|
16340
16343
|
}).appendTo(this.el));
|
|
16341
16344
|
}
|
|
16342
|
-
this.
|
|
16343
|
-
'class': '
|
|
16344
|
-
'contenteditable': true
|
|
16345
|
+
this.group = jQuery('<div/>', {
|
|
16346
|
+
'class': 'input-group',
|
|
16345
16347
|
}).appendTo(jQuery('<div/>', {
|
|
16346
|
-
'class': 'panel-body'
|
|
16348
|
+
'class': 'panel-body',
|
|
16347
16349
|
}).appendTo(this.el));
|
|
16348
|
-
this.
|
|
16350
|
+
this.input = this.labelled = jQuery('<div/>', {
|
|
16351
|
+
'class': 'richtext mousetrap',
|
|
16352
|
+
'contenteditable': true,
|
|
16353
|
+
}).appendTo(this.group);
|
|
16354
|
+
this.group.focusout(this.focus_out.bind(this));
|
|
16349
16355
|
if (this.attributes.translate) {
|
|
16350
16356
|
var button = jQuery('<button/>', {
|
|
16351
16357
|
'class': 'btn btn-default btn-sm form-control',
|
|
@@ -16353,7 +16359,7 @@ function eval_pyson(value){
|
|
|
16353
16359
|
'aria-label': Sao.i18n.gettext("Translate"),
|
|
16354
16360
|
}).appendTo(jQuery('<span/>', {
|
|
16355
16361
|
'class': 'input-group-btn',
|
|
16356
|
-
}).appendTo(this.
|
|
16362
|
+
}).appendTo(this.group));
|
|
16357
16363
|
button.append(
|
|
16358
16364
|
Sao.common.ICONFACTORY.get_icon_img('tryton-translate'));
|
|
16359
16365
|
button.click(this.translate.bind(this));
|
|
@@ -16862,7 +16868,7 @@ function eval_pyson(value){
|
|
|
16862
16868
|
_update_completion: function(text) {
|
|
16863
16869
|
var record = this.record;
|
|
16864
16870
|
if (!record) {
|
|
16865
|
-
return;
|
|
16871
|
+
return jQuery.when();
|
|
16866
16872
|
}
|
|
16867
16873
|
var field = this.field;
|
|
16868
16874
|
var value = field.get(record);
|
|
@@ -17647,7 +17653,7 @@ function eval_pyson(value){
|
|
|
17647
17653
|
},
|
|
17648
17654
|
_update_completion: function(text) {
|
|
17649
17655
|
if (!this.record) {
|
|
17650
|
-
return;
|
|
17656
|
+
return jQuery.when();
|
|
17651
17657
|
}
|
|
17652
17658
|
var model = this.attributes.relation;
|
|
17653
17659
|
var domain = this.field.get_domain(this.record);
|
|
@@ -17964,7 +17970,7 @@ function eval_pyson(value){
|
|
|
17964
17970
|
},
|
|
17965
17971
|
_update_completion: function(text) {
|
|
17966
17972
|
if (!this.record) {
|
|
17967
|
-
return;
|
|
17973
|
+
return jQuery.when();
|
|
17968
17974
|
}
|
|
17969
17975
|
var model = this.attributes.relation;
|
|
17970
17976
|
var domain = this.field.get_domain(this.record);
|
|
@@ -18853,10 +18859,10 @@ function eval_pyson(value){
|
|
|
18853
18859
|
},
|
|
18854
18860
|
_update_completion: function(text) {
|
|
18855
18861
|
if (this.wid_text.prop('disabled')) {
|
|
18856
|
-
return;
|
|
18862
|
+
return jQuery.when();
|
|
18857
18863
|
}
|
|
18858
18864
|
if (!this.record) {
|
|
18859
|
-
return;
|
|
18865
|
+
return jQuery.when();
|
|
18860
18866
|
}
|
|
18861
18867
|
return Sao.common.update_completion(
|
|
18862
18868
|
this.wid_text, this.record, this.field, this.schema_model);
|
package/dist/tryton-sao.min.css
CHANGED
|
@@ -9882,8 +9882,8 @@ img.icon {
|
|
|
9882
9882
|
min-height: 150px;
|
|
9883
9883
|
max-height: 300px;
|
|
9884
9884
|
}
|
|
9885
|
-
.form .form-text
|
|
9886
|
-
.form .form-richtext
|
|
9885
|
+
.form .form-text textarea,
|
|
9886
|
+
.form .form-richtext textarea,
|
|
9887
9887
|
.form .form-text .richtext,
|
|
9888
9888
|
.form .form-richtext .richtext {
|
|
9889
9889
|
height: 100%;
|