mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-27 12:22:52 +00:00
8 lines
No EOL
229 B
JavaScript
8 lines
No EOL
229 B
JavaScript
|
|
|
|
function createGenericButton(placeElement,buttonText,clickHandler) {
|
|
var b = document.createElement("button");
|
|
b.appendChild(document.createTextNode(buttonText));
|
|
b.onclick = clickHandler;
|
|
placeElement.appendChild(b);
|
|
} |