mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	| @@ -1004,16 +1004,17 @@ | ||||
|             this.uiSelect.hide(); | ||||
|         }, | ||||
|         disable: function(val) { | ||||
|             if(val === true) { | ||||
|             if(val === undefined || !!val === true) { | ||||
|                 this.uiSelect.attr("disabled", "disabled"); | ||||
|             } else if (val === false) { | ||||
|                 this.uiSelect.attr("disabled", null); //remove attr | ||||
|             } else { | ||||
|                 this.uiSelect.attr("disabled", val); //user value | ||||
|                 this.uiSelect.attr("disabled", null); //remove attr | ||||
|             } | ||||
|         }, | ||||
|         enable: function() { | ||||
|             this.uiSelect.attr("disabled", null); //remove attr | ||||
|         }, | ||||
|         disabled: function() { | ||||
|             return this.uiSelect.attr("disabled"); | ||||
|             return this.uiSelect.attr("disabled") === "disabled"; | ||||
|         } | ||||
|     }); | ||||
| })(jQuery); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user