diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-06 07:02:55 -0800 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-06 07:02:55 -0800 |
| commit | 44ae88e8e17713cab81a5cf08820e18896615196 (patch) | |
| tree | 45ecb24e92cbd8454c67a4840eea8ae579ebe68f /modules/tag/views | |
| parent | 1faa2492952a54f0b80cce149ae42b59b91039df (diff) | |
| parent | 04c10a0720b57bc4b6273ea7127d9880c2c28354 (diff) | |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/tag/views')
| -rw-r--r-- | modules/tag/views/admin_tags.html.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/tag/views/admin_tags.html.php b/modules/tag/views/admin_tags.html.php index 10d7921a..b637a7f1 100644 --- a/modules/tag/views/admin_tags.html.php +++ b/modules/tag/views/admin_tags.html.php @@ -1,18 +1,15 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <script type="text/javascript"> - var TAG_RENAME_URL = <?= html::js_string(url::site("admin/tags/rename/__ID__")) ?>; $("document").ready(function() { // using JS for adding link titles to avoid running t() for each tag $("#g-tag-admin .g-tag-name").attr("title", <?= t("Click to edit this tag")->for_js() ?>); $("#g-tag-admin .g-delete-link").attr("title", $(".g-delete-link:first span").html()); // In-place editing for tag admin - $(".g-editable").bind("click", editInPlace); + $(".g-editable").gallery_in_place_edit({ + form_url: <?= html::js_string(url::site("admin/tags/form_rename/__ID__")) ?> + }); }); - // make some values available within tag.js - var csrf_token = "<?= $csrf ?>"; - var save_i18n = <?= html::js_string(t("save")->for_html_attr()) ?>; - var cancel_i18n = <?= html::js_string(t("cancel")->for_html_attr()) ?>; </script> <? $tags_per_column = $tags->count()/5 ?> |
