Changeset 9056


Ignore:
Timestamp:
02/02/11 13:03:09 (9 years ago)
Author:
nikrou
Message:

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.

Location:
extensions/user_tags
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_tags/CHANGELOG

    r9037 r9056  
     1User Tags 0.4.1 - 2011-02-01 
     2================================ 
     3* Fix javascript issue for Internet Explorer 8.  
     4  That browser takes the word "class" as a javascript reserved word 
     5  and aborts the script. Thanks to cljosse. 
     6 
    17User Tags 0.4.0 - 2011-02-01 
    28================================ 
  • extensions/user_tags/main.inc.php

    r9037 r9056  
    2222/* 
    2323Plugin Name: User Tags 
    24 Version: 0.4.0 
     24Version: 0.4.1 
    2525Description: Allow visitors to add tag to images 
    2626Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=441 
  • extensions/user_tags/template/add_tags.tpl

    r9037 r9056  
    33<script type="text/javascript"> 
    44var related_tags = ''; 
    5 var class = 'selected'; 
     5var option_class = 'selected'; 
    66{if ($T4U_PERMISSION_DELETE==false)} 
    7 class += ' locked';  
     7option_class += ' locked';  
    88{/if} 
    99{foreach from=$T4U_RELATED_TAGS item=tag key=id} 
    10 related_tags += '<option value="{$id}" class="'+class+'">{$tag}</option>'; 
     10related_tags += '<option value="{$id}" class="'+option_class+'">{$tag}</option>'; 
    1111{/foreach} 
    1212var path = new Array(); 
Note: See TracChangeset for help on using the changeset viewer.