kopia lustrzana https://github.com/miklobit/TiddlyWiki5
				
				
				
			Fix problem with radio widget refreshing
							rodzic
							
								
									65e3780cc1
								
							
						
					
					
						commit
						37a46adac8
					
				|  | @ -98,7 +98,7 @@ RadioWidget.prototype.execute = function() { | ||||||
| 	this.radioField = this.getAttribute("field"); | 	this.radioField = this.getAttribute("field"); | ||||||
| 	this.radioValue = this.getAttribute("value"); | 	this.radioValue = this.getAttribute("value"); | ||||||
| 	this.radioClass = this.getAttribute("class",""); | 	this.radioClass = this.getAttribute("class",""); | ||||||
| 	if (this.radioClass !== "") { | 	if(this.radioClass !== "") { | ||||||
| 		this.radioClass += " "; | 		this.radioClass += " "; | ||||||
| 	} | 	} | ||||||
| 	this.radioClass += "tw-radio"; | 	this.radioClass += "tw-radio"; | ||||||
|  | @ -117,7 +117,7 @@ RadioWidget.prototype.refresh = function(changedTiddlers) { | ||||||
| 	} else { | 	} else { | ||||||
| 		var refreshed = false; | 		var refreshed = false; | ||||||
| 		if(changedTiddlers[this.radioTitle]) { | 		if(changedTiddlers[this.radioTitle]) { | ||||||
| 			this.inputDomNode.checked = this.getValue(); | 			this.inputDomNode.checked = this.getValue() === this.radioValue; | ||||||
| 			refreshed = true; | 			refreshed = true; | ||||||
| 		} | 		} | ||||||
| 		return this.refreshChildren(changedTiddlers) || refreshed; | 		return this.refreshChildren(changedTiddlers) || refreshed; | ||||||
|  |  | ||||||
		Ładowanie…
	
		Reference in New Issue
	
	 Jermolene
						Jermolene