mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
Work in progress on a major revision of the NanoUI templating system.
This commit is contained in:
@@ -197,11 +197,7 @@ NanoBaseHelpers = function ()
|
||||
}
|
||||
};
|
||||
} ();
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
NanoBaseHelpers.init();
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -58,8 +58,5 @@ var NanoTemplate = function () {
|
||||
}
|
||||
}
|
||||
}();
|
||||
|
||||
$(document).ready(function () {
|
||||
NanoTemplate.init();
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -236,8 +236,4 @@ NanoUpdate = function ()
|
||||
}
|
||||
};
|
||||
} ();
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
NanoUpdate.init();
|
||||
});
|
||||
|
||||
|
||||
+15
-9
@@ -6,13 +6,6 @@ var NanoUtility = function ()
|
||||
return {
|
||||
init: function ()
|
||||
{
|
||||
if (typeof jQuery == 'undefined') {
|
||||
alert('ERROR: Javascript library failed to load!');
|
||||
}
|
||||
if (typeof doT == 'undefined') {
|
||||
alert('ERROR: Template engine failed to load!');
|
||||
}
|
||||
|
||||
var body = $('body'); // We store data in the body tag, it's as good a place as any
|
||||
|
||||
_urlParameters = body.data('urlParameters');
|
||||
@@ -48,9 +41,22 @@ var NanoUtility = function ()
|
||||
return queryString;
|
||||
}
|
||||
}
|
||||
} ();
|
||||
} ();
|
||||
|
||||
NanoUtility.init();
|
||||
if (typeof jQuery == 'undefined') {
|
||||
alert('ERROR: Javascript library failed to load!');
|
||||
}
|
||||
if (typeof doT == 'undefined') {
|
||||
alert('ERROR: Template engine failed to load!');
|
||||
}
|
||||
|
||||
// All scripts are initialised here, this allows control of init order
|
||||
$(document).ready(function () {
|
||||
NanoUtility.init();
|
||||
NanoTemplate.init();
|
||||
NanoBaseHelpers.init();
|
||||
NanoUpdate.init();
|
||||
});
|
||||
|
||||
if (!Array.prototype.indexOf)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user