This commit is contained in:
Martin Müller 2014-06-04 00:10:58 +02:00
parent a5c35d11b7
commit 4b6e53cc46
3 changed files with 25 additions and 15 deletions

View File

@ -1,4 +1,8 @@
<?php
/*
*
*/
?>
<div class="box"> <div class="box">

View File

@ -1,4 +1,8 @@
<?php
/*
*
*/
?>
<div class="box"> <div class="box">

View File

@ -41,19 +41,6 @@ var global_load = null;
} }
} }
function event(where) { 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) { $(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) {
@ -124,7 +111,9 @@ var global_load = null;
if (!see && $(this).attr("data") != "set") { if (!see && $(this).attr("data") != "set") {
$(this).attr("data", "set"); $(this).attr("data", "set");
$("tr", that).removeClass("new"); $("tr", that).removeClass("new");
console.log(newRow);
$(that).append("<tr class=\"new\">" + newRow + "</tr>"); $(that).append("<tr class=\"new\">" + newRow + "</tr>");
event("form.tableForm tbody tr.new");
evet(); evet();
} }
}); });
@ -140,6 +129,19 @@ var global_load = null;
} }
evet(); 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) { function setContent(data, back, tab, backignore) {
title = data.split('<title>')[1].split('</title>')[0]; title = data.split('<title>')[1].split('</title>')[0];