mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-31 12:32:28 +00:00
Work in progress on a major revision of the NanoUI templating system.
This commit is contained in:
@@ -1,15 +1,21 @@
|
||||
// NanoUtility is the place to store utility functions
|
||||
var NanoUtility = function ()
|
||||
{
|
||||
return {
|
||||
var _urlParameters = {}; // This is populated with the base url parameters (used by all links), which is probaby just the "src" parameter
|
||||
|
||||
return {
|
||||
init: function ()
|
||||
{
|
||||
if (typeof jQuery == 'undefined') {
|
||||
alert('ERROR: jQuery failed to load!');
|
||||
alert('ERROR: Javascript library failed to load!');
|
||||
}
|
||||
if (typeof $.views == 'undefined') {
|
||||
alert('ERROR: JSRender 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');
|
||||
},
|
||||
// generate a Byond href, combines _urlParameters with parameters
|
||||
generateHref: function (parameters)
|
||||
|
||||
Reference in New Issue
Block a user