feature 724: FCBKcomplete propagated to element_set_global and
element_set_unit to manage tags. Note: multiple instances of FCBKcomplete on the same page does not work as good as a single instance. git-svn-id: http://piwigo.org/svn/trunk@5188 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
b7fee65e8f
commit
3a076f460d
6 changed files with 118 additions and 79 deletions
|
|
@ -7,6 +7,24 @@
|
|||
</script>
|
||||
{/literal}
|
||||
|
||||
{known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$("#tags").fcbkcomplete({
|
||||
json_url: "admin.php?fckb_tags=1",
|
||||
cache: false,
|
||||
filter_case: true,
|
||||
filter_hide: true,
|
||||
firstselected: true,
|
||||
filter_selected: true,
|
||||
maxitems: 10,
|
||||
newel: true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<h2>{'Batch management'|@translate}</h2>
|
||||
|
||||
<h3>{$CATEGORIES_NAV}</h3>
|
||||
|
|
@ -108,7 +126,13 @@
|
|||
|
||||
<tr>
|
||||
<td>{'add tags'|@translate}</td>
|
||||
<td>{if !empty($ADD_TAG_SELECTION)}{$ADD_TAG_SELECTION}{else}<p>{'No tag defined. Use Administration>Pictures>Tags'|@translate}</p>{/if}</td>
|
||||
<td>
|
||||
<select id="tags" name="add_tags">
|
||||
{foreach from=$tags item=tag}
|
||||
<option value="{$tag.value}" class="selected">{$tag.caption}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if !empty($DEL_TAG_SELECTION)}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,25 @@
|
|||
{include file='include/autosize.inc.tpl'}
|
||||
{include file='include/datepicker.inc.tpl'}
|
||||
|
||||
{known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(".tags").fcbkcomplete({
|
||||
json_url: "admin.php?fckb_tags=1",
|
||||
cache: false,
|
||||
filter_case: true,
|
||||
filter_hide: true,
|
||||
firstselected: true,
|
||||
filter_selected: true,
|
||||
maxitems: 10,
|
||||
newel: true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
|
||||
<h2>{'Batch management'|@translate}</h2>
|
||||
|
||||
<h3>{$CATEGORIES_NAV}</h3>
|
||||
|
|
@ -75,7 +94,15 @@
|
|||
|
||||
<tr>
|
||||
<td><strong>{'Tags'|@translate}</strong></td>
|
||||
<td>{$element.TAG_SELECTION}</td>
|
||||
<td>
|
||||
|
||||
<select class="tags" name="tags-{$element.ID}">
|
||||
{foreach from=$element.TAGS item=tag}
|
||||
<option value="{$tag.value}" class="selected">{$tag.caption}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue