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.
Files changed (57) hide show
  1. package/CHANGELOG +10 -0
  2. package/dist/tryton-sao.css +2 -2
  3. package/dist/tryton-sao.js +22 -24
  4. package/locale/bg.json +1 -1
  5. package/locale/bg.po +10 -13
  6. package/locale/ca.json +1 -1
  7. package/locale/ca.po +16 -19
  8. package/locale/cs.json +1 -1
  9. package/locale/cs.po +10 -13
  10. package/locale/de.json +1 -1
  11. package/locale/de.po +15 -18
  12. package/locale/es.json +1 -1
  13. package/locale/es.po +16 -19
  14. package/locale/es_419.json +1 -1
  15. package/locale/es_419.po +11 -13
  16. package/locale/et.json +1 -1
  17. package/locale/et.po +10 -13
  18. package/locale/fa.json +1 -1
  19. package/locale/fa.po +11 -13
  20. package/locale/fi.json +1 -1
  21. package/locale/fi.po +10 -13
  22. package/locale/fr.json +1 -1
  23. package/locale/fr.po +15 -17
  24. package/locale/hu.json +1 -1
  25. package/locale/hu.po +11 -13
  26. package/locale/id.json +1 -1
  27. package/locale/id.po +10 -13
  28. package/locale/it.json +1 -1
  29. package/locale/it.po +11 -13
  30. package/locale/lo.json +1 -1
  31. package/locale/lo.po +11 -13
  32. package/locale/lt.json +1 -1
  33. package/locale/lt.po +11 -13
  34. package/locale/messages.pot +6 -0
  35. package/locale/nl.json +1 -1
  36. package/locale/nl.po +16 -19
  37. package/locale/pl.json +1 -1
  38. package/locale/pl.po +60 -81
  39. package/locale/pt.json +1 -1
  40. package/locale/pt.po +11 -13
  41. package/locale/ro.json +1 -1
  42. package/locale/ro.po +11 -13
  43. package/locale/ru.json +1 -1
  44. package/locale/ru.po +10 -13
  45. package/locale/sl.json +1 -1
  46. package/locale/sl.po +11 -13
  47. package/locale/tr.json +1 -1
  48. package/locale/tr.po +10 -13
  49. package/locale/uk.json +1 -1
  50. package/locale/uk.po +11 -13
  51. package/locale/zh_CN.json +1 -1
  52. package/locale/zh_CN.po +11 -13
  53. package/package.json +1 -1
  54. package/src/common.js +2 -10
  55. package/src/sao.js +1 -1
  56. package/src/sao.less +1 -1
  57. 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.el);
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.el));
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.input = this.labelled = jQuery('<div/>', {
2417
- 'class': 'richtext mousetrap',
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.el.focusout(this.focus_out.bind(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.el));
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);