Ignore:
Timestamp:
Jul 30, 2009, 10:58:32 PM (15 years ago)
Author:
tiico
Message:

Suppress render for comment and author
Add double select in piclenswall admin page + jquery
Add compatibility with wat.tv video and correct rdd feed to adapt with cooliris 1.11
Correct %I2 param for parser : without picture name, display picture file
Suppress slashes in "name" and "descriptions" parameters
Change version to 0.4.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/piclens/admin/piclenswallconfig.tpl

    r3637 r3708  
    8282                        <td><input type="text" size="3" maxlength="3" value="{$PICLENS_WALL_HEIGHT}" name="piclens_wall_height">&nbsp;px</td>
    8383                </tr>
    84                 <br>
     84                <tr>
     85                        <td colspan="2"><br>&nbsp;</td>
     86                </tr>
    8587                <tr>
    8688                    <td align="right">{'piclens_wallcfg_param'|@translate} &nbsp;</td>
     
    9597                </tr>
    9698                <TR>
    97                         <td align="right">{'piclens_wallcfg_cat'|@translate}&nbsp;</td>
    98                         <td align="center">
    99                       <select class="categoryList" name="categories[]" multiple="multiple" size="30">
    100                         {html_options options=$categories selected=$categories_selected value=$categories_value}
    101                       </select>
     99                        <td align="center" colspan="2">
     100                                <div id="cat_select0">
     101                                <b><u>{'piclens_wallcfg_cat'|@translate}&nbsp;</u></b>
     102                                </div>
     103                        </td>
     104                </tr>
     105                <tr>
     106                        <td colspan="2">
     107                        <div id="cat_select">
     108                                {$DOUBLE_SELECT}
     109                                <div><input type="hidden" name="from" value="wallcat" /></div>
     110                        </div>
    102111                        </td>
    103112                </tr>
     
    116125                        </TD>
    117126                </TR>
    118                 <TR>
     127                <TR class="cat_replace" style="display:none;">
    119128                        <td align="right">{'piclens_wallcfg_cat_nav1'|@translate}&nbsp;</td>
    120129                        <td align="center">
    121                       <select class="categoryList" name="categories_nav[]" multiple="multiple" size="30">
     130                      <select class="categoryList1" name="categories_nav[]" multiple="multiple" size="10" style="width:300px">
    122131                        {html_options options=$categories_nav selected=$categories_nav_selected value=$categories_nav_value}
    123132                      </select>
     
    129138                                 - <input type="checkbox" name="piclens_wall_spec" {$PICLENS_WALL_SPEC}/> {'piclens_wallcfg_spec_nav'|@translate}
    130139                        </TD>
    131                         <TD align="rignt">
     140                        <TD class="spec_selection" style="display:none;" align="rignt">
    132141                                 <input type="checkbox" name="piclens_wall_spec_favorites" {$PICLENS_WALL_SPEC_FAVORITES}/> {'piclens_favorites_label'|@translate}
    133142                    <br/>
     
    148157{literal}
    149158<script type="text/javascript">
    150   jQuery().ready(function(){
    151     // Resize possible for categories selection
    152     jQuery('.categoryList').resizable({
     159resize = false;
     160function show_cat_list()
     161{
     162  jQuery('.cat_replace').show();
     163  if (!resize)
     164  {
     165    resize = true;
     166    jQuery('.categoryList1').resizable({
    153167      handles: "all",
    154168      animate: true,
     
    160174      ghost: true
    161175    });
     176  }
     177}
     178
     179function hide_cat_list()
     180{
     181  jQuery('.cat_replace').hide();
     182}
     183
     184
     185jQuery().ready( function () {
     186jQuery("input[name='piclens_wall_nav']").click( function() {
     187    if (this.checked)
     188    {
     189        show_cat_list();
     190    }
     191    else
     192    {
     193      hide_cat_list();
     194    }
    162195  });
     196jQuery("input[name='piclens_wall_spec']").click( function() {
     197    if (this.checked)
     198    {
     199                jQuery('.spec_selection').show();
     200    }
     201    else
     202    {
     203                jQuery('.spec_selection').hide();
     204    }
     205  });
     206       
     207});
     208
     209if (document.getElementsByName("piclens_wall_nav")[0].checked)
     210{
     211    show_cat_list();
     212}
     213if (document.getElementsByName("piclens_wall_spec")[0].checked)
     214{
     215                jQuery('.spec_selection').show();
     216}
     217
    163218</script>
    164219{/literal}
Note: See TracChangeset for help on using the changeset viewer.