From 6d2812cf24b0739a1afbddac5c6c063c464ca3cb Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 29 Nov 2016 11:17:18 +0100 Subject: [PATCH] fixes #557, on-demand tag creation form --- admin/themes/default/template/tags.tpl | 47 ++++++++++++++++++++------ 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/admin/themes/default/template/tags.tpl b/admin/themes/default/template/tags.tpl index d7d85b0f9..0e7bb44cb 100644 --- a/admin/themes/default/template/tags.tpl +++ b/admin/themes/default/template/tags.tpl @@ -6,6 +6,20 @@ {/html_style} {footer_script require='jquery'} +/** + * Add tag + */ +jQuery("#addTag").click(function() { + jQuery("#addTagForm").toggle(); + jQuery("input[name=add_tag]").focus(); + return false; +}); + +jQuery("#addTagClose").click(function() { + jQuery("#addTagForm").hide(); + return false; +}); + jQuery('.showInfo').tipTip({ 'delay' : 0, 'fadeIn' : 200, @@ -132,6 +146,28 @@ jQuery("input[name=confirm_deletion]").change(function() {

{'Manage tags'|@translate}

+

+ {'Add a tag'|translate} +

+ + +
@@ -202,17 +238,6 @@ jQuery("input[name=confirm_deletion]").change(function() { {/if} -
- {'Add a tag'|@translate} - - - -

-
- {if !isset($EDIT_TAGS_LIST) and !isset($DUPLIC_TAGS_LIST) and !isset($MERGE_TAGS_LIST)}