marco.js¶
-
addToList
(file)¶ Creates a panel control to the file
Arguments: - file (str) – The name of the new file
-
createStatusbar
(obj)¶ Creates the status bar object
-
handleFileUpload
(files, obj)¶ Parses the HTML form and creates a form with all the information to upload
Arguments: - files (list) – An array with each of the deployment objects
- obj (object) – (deprecated) The deployment area
-
nodo
(info, callback)¶ Creates a new node element
Arguments: - info (str) – The ip of the node
- callback (function) – The callback with either the information of the node or an error message
-
probeSocket
(uri, callback, errcallback)¶ Determines if a WebSocket connection can be established
Arguments: - uri (str) – The uri where to connect to
- callback (function) – A success callback
- errcallback (function) – An error callback
-
ready
()¶ Binds the DOM elements
-
ready
() Binds the initial event handlers and data structures
-
sendFileToServer
(formData, status)¶ Sends the deployment information
Arguments: - formData (object) – The data to send
- status (int) – A jQuery object that controls a progress bar which represents the upload process