mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
linted client-side core modules
This commit is contained in:
@@ -208,12 +208,14 @@ $(document).ready(function() {
|
|||||||
ajaxify.getCustomTemplateMapping = function(tpl) {
|
ajaxify.getCustomTemplateMapping = function(tpl) {
|
||||||
if (templatesModule.config && templatesModule.config.custom_mapping && tpl !== undefined) {
|
if (templatesModule.config && templatesModule.config.custom_mapping && tpl !== undefined) {
|
||||||
for (var pattern in templatesModule.config.custom_mapping) {
|
for (var pattern in templatesModule.config.custom_mapping) {
|
||||||
|
if (templatesModule.config.custom_mapping.hasOwnProperty(pattern)) {
|
||||||
var match = tpl.match(pattern);
|
var match = tpl.match(pattern);
|
||||||
if (match && match[0] === tpl) {
|
if (match && match[0] === tpl) {
|
||||||
return (templatesModule.config.custom_mapping[pattern]);
|
return (templatesModule.config.custom_mapping[pattern]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global io, templates, translator, ajaxify, utils, bootbox, RELATIVE_PATH, config*/
|
/*global io, templates, translator, ajaxify, utils, bootbox, RELATIVE_PATH, config, Visibility*/
|
||||||
|
|
||||||
var socket,
|
var socket,
|
||||||
app = app || {};
|
app = app || {};
|
||||||
@@ -366,7 +366,7 @@ app.cacheBuster = null;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
function createHeaderTooltips() {
|
function createHeaderTooltips() {
|
||||||
if (utils.findBootstrapEnvironment() === 'xs') {
|
if (utils.findBootstrapEnvironment() === 'xs') {
|
||||||
|
|||||||
Reference in New Issue
Block a user