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];