i18n etwas umstrukturiert
This commit is contained in:
parent
1131c0e302
commit
3d3ad6cd37
|
@ -41,6 +41,15 @@ var global_load = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function event(where) {
|
function event(where) {
|
||||||
|
|
||||||
|
$("#alert .alert").alert();
|
||||||
|
$(where + ' textarea').wysihtml5();
|
||||||
|
$(where + ' select').each(function() {
|
||||||
|
$(this).select2({allowClear: true});
|
||||||
|
});
|
||||||
|
$(where + ' .dropdown-toggle').dropdown();
|
||||||
|
$(where + " a").tooltip();
|
||||||
|
|
||||||
$(where + " a").not('[href*="mailto:"]').each(function(that) {
|
$(where + " a").not('[href*="mailto:"]').each(function(that) {
|
||||||
if ($(this).attr("rel") !== "external" && $(this).attr("ref") !== "eventOff" && !$(this).parents('ul').hasClass("wysihtml5-toolbar") && !$(this).hasClass(".select2-choice"))
|
if ($(this).attr("rel") !== "external" && $(this).attr("ref") !== "eventOff" && !$(this).parents('ul').hasClass("wysihtml5-toolbar") && !$(this).hasClass(".select2-choice"))
|
||||||
$(this).click(function(e) {
|
$(this).click(function(e) {
|
||||||
|
@ -137,14 +146,6 @@ var global_load = null;
|
||||||
$(where + ' img').each(function() {
|
$(where + ' img').each(function() {
|
||||||
$(this).attr('src', $(this).attr('src') + '?' + (new Date()).getTime());
|
$(this).attr('src', $(this).attr('src') + '?' + (new Date()).getTime());
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#alert .alert").alert();
|
|
||||||
$(where + ' textarea').wysihtml5();
|
|
||||||
$(where + ' select').each(function() {
|
|
||||||
$(this).select2({allowClear: true});
|
|
||||||
});
|
|
||||||
$(where + ' .dropdown-toggle').dropdown();
|
|
||||||
$(where + " a").tooltip();
|
|
||||||
}
|
}
|
||||||
function setContent(data, back, tab, backignore) {
|
function setContent(data, back, tab, backignore) {
|
||||||
title = data.split('<title>')[1].split('</title>')[0];
|
title = data.split('<title>')[1].split('</title>')[0];
|
||||||
|
|
Loading…
Reference in New Issue