Improve scripts load system

This commit is contained in:
RainLoop Team 2016-05-20 03:04:15 +03:00
parent 58b9eed8e8
commit 72bf212f67
39 changed files with 916 additions and 411 deletions

View file

@ -1419,7 +1419,7 @@
aContent.push('' + sKey + '=' + sValue);
});
$('#rl-head-viewport').attr('content', aContent.join(', '));
$('#app-head-viewport').attr('content', aContent.join(', '));
};
/**
@ -1538,8 +1538,8 @@
Utils.changeTheme = function (sValue, themeTrigger)
{
var
oThemeLink = $('#rlThemeLink'),
oThemeStyle = $('#rlThemeStyle'),
oThemeLink = $('#app-theme-link'),
oThemeStyle = $('#app-theme-style'),
sUrl = oThemeLink.attr('href')
;
@ -1576,7 +1576,7 @@
{
if (oThemeLink && oThemeLink[0] && (!oThemeStyle || !oThemeStyle[0]))
{
oThemeStyle = $('<style id="rlThemeStyle"></style>');
oThemeStyle = $('<style id="app-theme-style"></style>');
oThemeLink.after(oThemeStyle);
oThemeLink.remove();
}