mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
Further conversion to new pattern.
This commit is contained in:
@@ -18,6 +18,21 @@
|
||||
|
||||
var GuacUI = GuacUI || {};
|
||||
|
||||
/**
|
||||
* Creates a new element having the given tagname and CSS class.
|
||||
*/
|
||||
GuacUI.createElement = function(tagname, classname) {
|
||||
var new_element = document.createElement(tagname);
|
||||
new_element.className = classname;
|
||||
return new_element;
|
||||
};
|
||||
|
||||
GuacUI.createChildElement = function(parent, tagname, classname) {
|
||||
var element = GuacUI.createElement(tagname, classname);
|
||||
parent.appendChild(element);
|
||||
return element;
|
||||
};
|
||||
|
||||
/**
|
||||
* Central registry of all components for all states.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user