source: extensions/user_tags/template/add_tags.tpl @ 9056

Revision 9056, 1.1 KB checked in by nikrou, 9 years ago (diff)

Fix javascript issue for Internet Explorer 8.
That browser takes the word "class" as a javascript reserved word
and aborts the script. Thanks to cljosse.

Line 
1{html_head}
2<script type="text/javascript" src="{$ROOT_URL}{$T4U_JS}/jquery.fcbkcomplete.js"></script>
3<script type="text/javascript">
4var related_tags = '';
5var option_class = 'selected';
6{if ($T4U_PERMISSION_DELETE==false)}
7option_class += ' locked';
8{/if}
9{foreach from=$T4U_RELATED_TAGS item=tag key=id}
10related_tags += '<option value="{$id}" class="'+option_class+'">{$tag}</option>';
11{/foreach}
12var path = new Array();
13path['t4u_add_script'] = "{$T4U_ADD_SCRIPT}";
14path['t4u_image_id'] = "{$T4U_IMAGE_ID}";
15path['t4u_referer'] = "{$T4U_REFERER}";
16path['t4u_edit_icon'] = "{$ROOT_URL}{$T4U_IMGS}/edit.png";
17path['t4u_get_script'] = "{$T4U_GET_SCRIPT}";
18
19var vocab = new Array();
20vocab['click_to_add_tags'] = "{'Click to add tags'|@translate}";
21vocab['start_to_type'] = "{'Start to type'|@translate}...";
22vocab['update_tags'] = "{'Update tags'|@translate}";
23vocab['Tags updated'] = "{'Tags updated'|@translate}";
24</script>
25<script type="text/javascript" src="{$ROOT_URL}{$T4U_JS}/jquery.addtags.js"></script>
26<link rel="stylesheet" type="text/css" href="{$ROOT_URL}{$T4U_CSS}/style.css">
27{/html_head}
Note: See TracBrowser for help on using the repository browser.