Fixed an error that prevented the creation of a template when a template was selected

This commit is contained in:
Alejandro Gallardo Escobar 2015-02-02 19:53:08 +01:00
parent 7855f62714
commit 88eedadc85
1 changed files with 2 additions and 2 deletions

View File

@ -92,8 +92,8 @@ $table->data[1][1] = html_print_select (index_array ($templates, 'id', 'name'),
$table->data[1][1] .= ' <a class="template_details invisible" href="#">' . $table->data[1][1] .= ' <a class="template_details invisible" href="#">' .
html_print_image("images/zoom.png", true, array("class" => 'img_help')) . '</a>'; html_print_image("images/zoom.png", true, array("class" => 'img_help')) . '</a>';
if (check_acl ($config['id_user'], 0, "LM")) { if (check_acl ($config['id_user'], 0, "LM")) {
$table->data[1][1] .= html_print_image ('images/add.png', true);
$table->data[1][1] .= '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&pure='.$pure.'">'; $table->data[1][1] .= '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&pure='.$pure.'">';
$table->data[1][1] .= html_print_image ('images/add.png', true);
$table->data[1][1] .= __('Create Template'); $table->data[1][1] .= __('Create Template');
$table->data[1][1] .= '</a>'; $table->data[1][1] .= '</a>';
} }
@ -160,7 +160,7 @@ $(document).ready (function () {
$("select#template").change (function () { $("select#template").change (function () {
id = this.value; id = this.value;
$a = $(this).siblings ("a"); $a = $(this).siblings ("a.template_details");
if (id == 0) { if (id == 0) {
$a.hide (); $a.hide ();
return; return;