tryton-sao 5.8.13 → 5.8.14
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 +3 -0
- package/dist/tryton-sao.js +9 -0
- package/dist/tryton-sao.min.js +2 -2
- package/package.json +1 -1
- package/src/view/form.js +9 -0
package/CHANGELOG
CHANGED
package/dist/tryton-sao.js
CHANGED
|
@@ -13744,6 +13744,15 @@ function eval_pyson(value){
|
|
|
13744
13744
|
Sao.View.Form.HTML._super.display.call(this);
|
|
13745
13745
|
this.button.attr('href', this.uri());
|
|
13746
13746
|
},
|
|
13747
|
+
set_readonly: function(readonly) {
|
|
13748
|
+
Sao.View.Form.HTML._super.set_readonly.call(this, readonly);
|
|
13749
|
+
this.el.find('button').prop('disabled', readonly);
|
|
13750
|
+
if (readonly) {
|
|
13751
|
+
this.el.find('a').hide();
|
|
13752
|
+
} else {
|
|
13753
|
+
this.el.find('a').show();
|
|
13754
|
+
}
|
|
13755
|
+
},
|
|
13747
13756
|
translate_dialog: function(languages) {
|
|
13748
13757
|
var options = {};
|
|
13749
13758
|
languages.forEach(function(language) {
|