mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-18 08:15:15 +00:00
Add disabled parameter to select widget and browse widget (#8816)
* Add disabled parameter to select widget and browse widget * Add disabled attribute to edit-shortcut
This commit is contained in:
@@ -56,6 +56,9 @@ BrowseWidget.prototype.render = function(parent,nextSibling) {
|
||||
if(this.nwdirectory) {
|
||||
domNode.setAttribute("nwdirectory",this.nwdirectory);
|
||||
}
|
||||
if(this.isDisabled === "yes") {
|
||||
domNode.setAttribute("disabled", true);
|
||||
}
|
||||
// Add a click event handler
|
||||
domNode.addEventListener("change",function (event) {
|
||||
if(self.message) {
|
||||
@@ -94,6 +97,7 @@ BrowseWidget.prototype.execute = function() {
|
||||
this.accept = this.getAttribute("accept");
|
||||
this.webkitdirectory = this.getAttribute("webkitdirectory");
|
||||
this.nwdirectory = this.getAttribute("nwdirectory");
|
||||
this.isDisabled = this.getAttribute("disabled", "no");
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user