From 4b6e53cc46130221bb5b1cc22ef5041abfb1577e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Wed, 4 Jun 2014 00:10:58 +0200 Subject: [PATCH] extra --- app/View/Extra/company.ctp | 6 +++++- app/View/Extra/worker.ctp | 6 +++++- app/webroot/js/dreamjob.js | 28 +++++++++++++++------------- 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/app/View/Extra/company.ctp b/app/View/Extra/company.ctp index b4c9f0b..fb5049b 100644 --- a/app/View/Extra/company.ctp +++ b/app/View/Extra/company.ctp @@ -1,4 +1,8 @@ - +
diff --git a/app/View/Extra/worker.ctp b/app/View/Extra/worker.ctp index ef6238e..90bd5c5 100644 --- a/app/View/Extra/worker.ctp +++ b/app/View/Extra/worker.ctp @@ -1,4 +1,8 @@ - +
diff --git a/app/webroot/js/dreamjob.js b/app/webroot/js/dreamjob.js index 7f53e1f..eeac879 100755 --- a/app/webroot/js/dreamjob.js +++ b/app/webroot/js/dreamjob.js @@ -41,19 +41,6 @@ var global_load = null; } } function event(where) { - /* Hotfix Ticket: 215*/ - $(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(); - ; $(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) { @@ -124,7 +111,9 @@ var global_load = null; if (!see && $(this).attr("data") != "set") { $(this).attr("data", "set"); $("tr", that).removeClass("new"); + console.log(newRow); $(that).append("" + newRow + ""); + event("form.tableForm tbody tr.new"); evet(); } }); @@ -140,6 +129,19 @@ var global_load = null; } evet(); }); + + + $(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];