mirror of
https://github.com/two-torial/webpatcher.git
synced 2025-02-01 04:15:47 +01:00
Fix radio tooltips
This commit is contained in:
parent
b180129275
commit
1f775e25c1
@ -94,7 +94,12 @@ UnionPatch.prototype.createUI = function(parent) {
|
||||
var patch = this.patches[i];
|
||||
var id = this.shortname + '-' + patch.shortname;
|
||||
var label = patch.name;
|
||||
container.append('<div class="patch"><input type="radio" id="' + id + '" name="' + this.shortname + '"><label for="' + id + '">' + label + '</label></div>');
|
||||
var patchDiv = $('<div>', {'class' : 'patch'});
|
||||
patchDiv.append('<input type="radio" id="' + id + '" name="' + this.shortname + '"><label for="' + id + '">' + label + '</label>');
|
||||
if(patch.tooltip) {
|
||||
patchDiv.append('<span class="tooltip">' + patch.tooltip + '</div>');
|
||||
}
|
||||
container.append(patchDiv);
|
||||
}
|
||||
parent.append(container);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user