небольшие корректировки в javascript
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
group = 'asys'
|
||||
version = '0.18.2-SNAPSHOT'
|
||||
version = '0.18.3-SNAPSHOT'
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
|
||||
@@ -1,6 +1,25 @@
|
||||
const ce = React.createElement;
|
||||
const nbsp = '\u00a0';
|
||||
|
||||
// -- Functions -- //
|
||||
|
||||
function loadScript(url, fnLoad, fnError) {
|
||||
const script = document.createElement("script");
|
||||
script.src = url;
|
||||
script.onload = fnLoad;
|
||||
script.onerror = fnError;
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
|
||||
function loadStyle(url, fnLoad, fnError) {
|
||||
const style = document.createElement("link");
|
||||
style.rel = "stylesheet";
|
||||
style.href = url;
|
||||
style.onload = fnLoad;
|
||||
style.onerror = fnError;
|
||||
document.body.appendChild(style);
|
||||
}
|
||||
|
||||
// -- Bootstrap -- //
|
||||
|
||||
var MainMenuItem = React.createClass({
|
||||
|
||||
Reference in New Issue
Block a user