tryton-sao 7.2.0 → 7.2.2
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 +10 -0
- package/dist/tryton-sao.css +2 -2
- package/dist/tryton-sao.js +22 -24
- package/locale/bg.json +1 -1
- package/locale/bg.po +10 -13
- package/locale/ca.json +1 -1
- package/locale/ca.po +16 -19
- package/locale/cs.json +1 -1
- package/locale/cs.po +10 -13
- package/locale/de.json +1 -1
- package/locale/de.po +15 -18
- package/locale/es.json +1 -1
- package/locale/es.po +16 -19
- package/locale/es_419.json +1 -1
- package/locale/es_419.po +11 -13
- package/locale/et.json +1 -1
- package/locale/et.po +10 -13
- package/locale/fa.json +1 -1
- package/locale/fa.po +11 -13
- package/locale/fi.json +1 -1
- package/locale/fi.po +10 -13
- package/locale/fr.json +1 -1
- package/locale/fr.po +15 -17
- package/locale/hu.json +1 -1
- package/locale/hu.po +11 -13
- package/locale/id.json +1 -1
- package/locale/id.po +10 -13
- package/locale/it.json +1 -1
- package/locale/it.po +11 -13
- package/locale/lo.json +1 -1
- package/locale/lo.po +11 -13
- package/locale/lt.json +1 -1
- package/locale/lt.po +11 -13
- package/locale/messages.pot +6 -0
- package/locale/nl.json +1 -1
- package/locale/nl.po +16 -19
- package/locale/pl.json +1 -1
- package/locale/pl.po +60 -81
- package/locale/pt.json +1 -1
- package/locale/pt.po +11 -13
- package/locale/ro.json +1 -1
- package/locale/ro.po +11 -13
- package/locale/ru.json +1 -1
- package/locale/ru.po +10 -13
- package/locale/sl.json +1 -1
- package/locale/sl.po +11 -13
- package/locale/tr.json +1 -1
- package/locale/tr.po +10 -13
- package/locale/uk.json +1 -1
- package/locale/uk.po +11 -13
- package/locale/zh_CN.json +1 -1
- package/locale/zh_CN.po +11 -13
- package/package.json +1 -1
- package/src/common.js +2 -10
- package/src/sao.js +1 -1
- package/src/sao.less +1 -1
- package/src/view/form.js +19 -13
package/src/view/form.js
CHANGED
|
@@ -2323,10 +2323,13 @@ function eval_pyson(value){
|
|
|
2323
2323
|
this.el = jQuery('<div/>', {
|
|
2324
2324
|
'class': this.class_
|
|
2325
2325
|
});
|
|
2326
|
+
this.group = jQuery('<div/>', {
|
|
2327
|
+
'class': 'input-group',
|
|
2328
|
+
}).appendTo(this.el);
|
|
2326
2329
|
this.input = this.labelled = jQuery('<textarea/>', {
|
|
2327
2330
|
'class': 'form-control input-sm mousetrap',
|
|
2328
2331
|
'name': attributes.name,
|
|
2329
|
-
}).appendTo(this.
|
|
2332
|
+
}).appendTo(this.group);
|
|
2330
2333
|
this.input.change(this.focus_out.bind(this));
|
|
2331
2334
|
this.input.on('keydown', this.send_modified.bind(this));
|
|
2332
2335
|
if (this.attributes.translate) {
|
|
@@ -2337,7 +2340,7 @@ function eval_pyson(value){
|
|
|
2337
2340
|
'title': Sao.i18n.gettext("Translate"),
|
|
2338
2341
|
}).appendTo(jQuery('<span/>', {
|
|
2339
2342
|
'class': 'input-group-btn'
|
|
2340
|
-
}).appendTo(this.
|
|
2343
|
+
}).appendTo(this.group));
|
|
2341
2344
|
button.append(
|
|
2342
2345
|
Sao.common.ICONFACTORY.get_icon_img('tryton-translate'));
|
|
2343
2346
|
button.click(this.translate.bind(this));
|
|
@@ -2413,13 +2416,16 @@ function eval_pyson(value){
|
|
|
2413
2416
|
'class': 'panel-heading',
|
|
2414
2417
|
}).appendTo(this.el));
|
|
2415
2418
|
}
|
|
2416
|
-
this.
|
|
2417
|
-
'class': '
|
|
2418
|
-
'contenteditable': true
|
|
2419
|
+
this.group = jQuery('<div/>', {
|
|
2420
|
+
'class': 'input-group',
|
|
2419
2421
|
}).appendTo(jQuery('<div/>', {
|
|
2420
|
-
'class': 'panel-body'
|
|
2422
|
+
'class': 'panel-body',
|
|
2421
2423
|
}).appendTo(this.el));
|
|
2422
|
-
this.
|
|
2424
|
+
this.input = this.labelled = jQuery('<div/>', {
|
|
2425
|
+
'class': 'richtext mousetrap',
|
|
2426
|
+
'contenteditable': true,
|
|
2427
|
+
}).appendTo(this.group);
|
|
2428
|
+
this.group.focusout(this.focus_out.bind(this));
|
|
2423
2429
|
if (this.attributes.translate) {
|
|
2424
2430
|
var button = jQuery('<button/>', {
|
|
2425
2431
|
'class': 'btn btn-default btn-sm form-control',
|
|
@@ -2428,7 +2434,7 @@ function eval_pyson(value){
|
|
|
2428
2434
|
'title': Sao.i18n.gettext("Translate"),
|
|
2429
2435
|
}).appendTo(jQuery('<span/>', {
|
|
2430
2436
|
'class': 'input-group-btn',
|
|
2431
|
-
}).appendTo(this.
|
|
2437
|
+
}).appendTo(this.group));
|
|
2432
2438
|
button.append(
|
|
2433
2439
|
Sao.common.ICONFACTORY.get_icon_img('tryton-translate'));
|
|
2434
2440
|
button.click(this.translate.bind(this));
|
|
@@ -2961,7 +2967,7 @@ function eval_pyson(value){
|
|
|
2961
2967
|
_update_completion: function(text) {
|
|
2962
2968
|
var record = this.record;
|
|
2963
2969
|
if (!record) {
|
|
2964
|
-
return;
|
|
2970
|
+
return jQuery.when();
|
|
2965
2971
|
}
|
|
2966
2972
|
var field = this.field;
|
|
2967
2973
|
var value = field.get(record);
|
|
@@ -3844,7 +3850,7 @@ function eval_pyson(value){
|
|
|
3844
3850
|
},
|
|
3845
3851
|
_update_completion: function(text) {
|
|
3846
3852
|
if (!this.record) {
|
|
3847
|
-
return;
|
|
3853
|
+
return jQuery.when();
|
|
3848
3854
|
}
|
|
3849
3855
|
var model = this.attributes.relation;
|
|
3850
3856
|
var domain = this.field.get_domain(this.record);
|
|
@@ -4230,7 +4236,7 @@ function eval_pyson(value){
|
|
|
4230
4236
|
},
|
|
4231
4237
|
_update_completion: function(text) {
|
|
4232
4238
|
if (!this.record) {
|
|
4233
|
-
return;
|
|
4239
|
+
return jQuery.when();
|
|
4234
4240
|
}
|
|
4235
4241
|
var model = this.attributes.relation;
|
|
4236
4242
|
var domain = this.field.get_domain(this.record);
|
|
@@ -5196,10 +5202,10 @@ function eval_pyson(value){
|
|
|
5196
5202
|
},
|
|
5197
5203
|
_update_completion: function(text) {
|
|
5198
5204
|
if (this.wid_text.prop('disabled')) {
|
|
5199
|
-
return;
|
|
5205
|
+
return jQuery.when();
|
|
5200
5206
|
}
|
|
5201
5207
|
if (!this.record) {
|
|
5202
|
-
return;
|
|
5208
|
+
return jQuery.when();
|
|
5203
5209
|
}
|
|
5204
5210
|
return Sao.common.update_completion(
|
|
5205
5211
|
this.wid_text, this.record, this.field, this.schema_model);
|