Renames main script file to H5ai.js and main h5ai reference to h5ai.

This commit is contained in:
Lars Jung 2012-03-07 02:33:48 +01:00
parent fbff8686bf
commit 194a202a0b
14 changed files with 159 additions and 151 deletions

50
src/_h5ai/js/inc/H5ai.js Normal file
View file

@ -0,0 +1,50 @@
(function ($) {
'use strict';
/*jslint browser: true, confusion: true, regexp: true, vars: true, white: true */
/*global Modernizr, jQuery, amplify, Base64, H5AI_CONFIG */
var h5ai = function () {
},
init = function () {
var $html = $('html');
h5ai.isJs = $html.hasClass('h5ai-js');
h5ai.isPhp = $html.hasClass('h5ai-php');
if (h5ai.isJs) {
h5ai.extended.init();
}
h5ai.core.init();
h5ai.sort.init();
h5ai.finder.init();
h5ai.zippedDownload.init();
h5ai.context.init();
if (h5ai.isPhp) {
$('#tree').scrollpanel();
h5ai.core.shiftTree(false, true);
}
// publish for testing
window.h5ai = h5ai;
};
// @include "Util.js"
// @include "Core.js"
// @include "Sort.js"
// @include "ZippedDownload.js"
// @include "Finder.js"
// @include "Context.js"
// @include "Path.js"
// @include "Connector.js"
// @include "Html.js"
// @include "Extended.js"
$(init);
}(jQuery));