This commit is contained in:
Alexander Trofimov
2015-06-25 11:27:08 +03:00
parent dbf21ee32f
commit a10605c91f
174 changed files with 24121 additions and 8908 deletions

View File

@@ -490,6 +490,27 @@ Common.Utils.showBrowserRestriction = function () {
$("#loading-mask").hide().remove();
$("#viewport").hide().remove();
};
Common.Utils.applyCustomization = function (config, elmap) {
for (var name in config) {
var $el;
if ( !! elmap[name]) {
$el = $(elmap[name]);
if ($el.length) {
var item = config[name];
if (item === false || item.visible === false) {
$el.hide();
} else {
if ( !! item.text) {
$el.text(item.text);
}
if (item.visible === false) {
$el.hide();
}
}
}
}
}
};
String.prototype.strongMatch = function (regExp) {
if (regExp && regExp instanceof RegExp) {
var arr = this.toString().match(regExp);