mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 14:04:45 -04:00
Adds sr translation by Goran.
This commit is contained in:
parent
998d3f30c6
commit
3f0327ff1d
6 changed files with 65 additions and 33 deletions
|
@ -306,8 +306,9 @@
|
|||
shiftTree: shiftTree,
|
||||
linkHoverStates: linkHoverStates,
|
||||
initIndicators: initIndicators,
|
||||
getFileType: getFileType,
|
||||
init: init
|
||||
getFileType: getFileType
|
||||
};
|
||||
|
||||
h5ai(init);
|
||||
|
||||
}(window, jQuery, h5ai));
|
||||
|
|
|
@ -33,40 +33,53 @@
|
|||
qrCodesSize: null,
|
||||
showFilter: false
|
||||
},
|
||||
h5ai = function () {
|
||||
|
||||
initMethods = [],
|
||||
addInitMethod = function (fn) {
|
||||
|
||||
if ($.isFunction(fn)) {
|
||||
initMethods.push(fn);
|
||||
}
|
||||
},
|
||||
init = function () {
|
||||
|
||||
var $html = $('html');
|
||||
|
||||
h5ai.isJs = $html.hasClass('h5ai-js');
|
||||
h5ai.isPhp = $html.hasClass('h5ai-php');
|
||||
|
||||
if (h5ai.isJs) {
|
||||
h5ai.extended.init();
|
||||
}
|
||||
|
||||
$.each(initMethods, function (idx, initMethod) {
|
||||
|
||||
initMethod();
|
||||
})
|
||||
|
||||
// h5ai.core.init();
|
||||
h5ai.localize.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;
|
||||
},
|
||||
h5ai = function (fn) {
|
||||
|
||||
addInitMethod(fn);
|
||||
};
|
||||
|
||||
h5ai.config = config;
|
||||
h5ai.settings = $.extend({}, defaults, config.options);
|
||||
|
||||
h5ai.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.localize.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 "Localize.js"
|
||||
|
@ -80,6 +93,6 @@
|
|||
// @include "Html.js"
|
||||
// @include "Extended.js"
|
||||
|
||||
$(h5ai.init);
|
||||
$(init);
|
||||
|
||||
}(jQuery, H5AI_CONFIG));
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
|
||||
if (path.html.$extended) {
|
||||
path.html.$extended.replaceWith($html);
|
||||
h5ai.core.formatDates();
|
||||
h5ai.localize.formatDates();
|
||||
}
|
||||
path.html.$extended = $html;
|
||||
|
||||
|
|
|
@ -101,7 +101,8 @@
|
|||
};
|
||||
|
||||
h5ai.localize = {
|
||||
init: init
|
||||
init: init,
|
||||
formatDates: formatDates
|
||||
};
|
||||
|
||||
}(jQuery, h5ai));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue