Hide URL button when the field is empty

The disabled attribute does not prevent the user to click on the empty link.

Closes #12747
This commit is contained in:
Cédric Krier committed 2023-11-14 15:23:36 +01:00
1 parent 77660e3932
commit 5f2793f75c
1 file changed
+1 -1
+1 -1
View File
@@ -4588,7 +4588,7 @@ function eval_pyson(value){
},
set_url: function(value) {
this.button.attr('href', value);
this.button.prop('disabled', !value);
this.button.toggle(value);
},
set_invisible: function(invisible) {
Sao.View.Form.URL._super.set_invisible.call(this, invisible);