From 3d3ad6cd37ec64506cb041c5ce57826699afb33e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Tue, 10 Jun 2014 19:21:34 +0200 Subject: [PATCH] i18n etwas umstrukturiert --- app/webroot/js/dreamjob.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/webroot/js/dreamjob.js b/app/webroot/js/dreamjob.js index 1b677a2..5686705 100755 --- a/app/webroot/js/dreamjob.js +++ b/app/webroot/js/dreamjob.js @@ -41,6 +41,15 @@ var global_load = null; } } 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) { if ($(this).attr("rel") !== "external" && $(this).attr("ref") !== "eventOff" && !$(this).parents('ul').hasClass("wysihtml5-toolbar") && !$(this).hasClass(".select2-choice")) $(this).click(function(e) { @@ -137,14 +146,6 @@ var global_load = null; $(where + ' img').each(function() { $(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) { title = data.split('')[1].split('')[0];