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:
1 parent
77660e3932
commit
5f2793f75c
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user