Load tags for tokeninput directly in html page. Ajax is too slow.

git-svn-id: http://piwigo.org/svn/trunk@11039 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
patdenice
2011-05-25 09:00:46 +00:00
parent 4c13229cd9
commit c9b7beb12f
9 changed files with 76 additions and 80 deletions
+12
View File
@@ -360,6 +360,18 @@ if (in_array($page['tab'], $tab_codes))
$tabsheet->select($page['tab']);
$tabsheet->assign();
// +-----------------------------------------------------------------------+
// | tags |
// +-----------------------------------------------------------------------+
$query = '
SELECT
id AS tag_id,
name AS tag_name
FROM '.TAGS_TABLE.'
;';
$template->assign('tags', get_taglist($query));
// +-----------------------------------------------------------------------+
// | open specific mode |
// +-----------------------------------------------------------------------+