Fix showing cats/tags list overlay on clicking cats/tags list

This was broken due to my recent markup changes. Also added lang
constants for the tags list, but since we could label it better,
introduced new lang constants for it.

References 
This commit is contained in:
Matthias Mees 2015-01-17 18:05:20 +01:00
parent 47afba18cb
commit 0dc96ec9b8
4 changed files with 16 additions and 7 deletions

@ -1,2 +1,2 @@
@define('PUBLISH_NOW', 'Publish this entry now (sets current time and date)');
@define('EDITOR_TAGS', 'Tags');
@define('EDITOR_NO_TAGS', 'No tags');

@ -22,7 +22,7 @@
</div>
<div id="tags_list" class="clearfix taxonomy">
<h3>Tags</h3>
<h3>{$CONST.PLUGIN_EVENT_FREETAG_MANAGETAGS}</h3>
<ul class="plainList"></ul>
</div>

@ -650,12 +650,12 @@
$target.empty();
if (tagged.length > 0) {
if (tagged == '') {
$('<li>{$CONST.PLUGIN_EVENT_FREETAG_NO_RELATED}</li>').appendTo($target);
} else {
$.each(tagged, function(key, tag) {
$('<li class="tags_selected"><span>'+ tag +'</span></li>').appendTo($target);
});
} else {
$('<li>{$CONST.NO_CATEGORIES}</li>').appendTo($target);
}
}
@ -1003,7 +1003,7 @@ $(function() {
}
});
$('#category_list').on('click', 'h3, li', function() {
$('#cats_list').on('click', 'h3, li', function() {
$('#select_category').trigger('click');
});
}
@ -1056,6 +1056,10 @@ $(function() {
$('#backend_freetag_list > a').click(function(e) {
e.preventDefault();
});
$('#tags_list').on('click', 'h3, li', function() {
$('#select_tags').trigger('click');
});
}
{/if}

@ -1783,6 +1783,11 @@ form > .button_link:first-of-type,
padding-bottom: .583335em;
}
.taxonomy h3,
.taxonomy li {
cursor: pointer;
}
.taxonomy h3 {
float: left;
line-height: 1.5em;