Dotclear

Changeset 2685:7658ee65dfe9


Ignore:
Timestamp:
03/23/14 18:29:26 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Fix issue #1736. Makes first option in select box selected when changing tab.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/userPref/index.php

    r2566 r2685  
    9898     //<![CDATA[ 
    9999     $(function() { 
    100           $("#gp_submit").hide(); 
    101           $("#lp_submit").hide(); 
     100          $("#gp_submit,#lp_submit").hide(); 
     101          $('#part-local,#part-global').tabload(function() { 
     102               $('.multi-part.active select.navigation option:first').attr('selected',true); 
     103          });           
    102104          $("#gp_nav").change(function() { 
    103105               window.location = $("#gp_nav option:selected").val(); 
    104           }) 
     106          }); 
    105107          $("#lp_nav").change(function() { 
    106108               window.location = $("#lp_nav option:selected").val(); 
    107           }) 
     109          }); 
    108110     }); 
    109111     //]]> 
     
    154156          '<form action="plugin.php" method="post">'. 
    155157          '<p class="anchor-nav">'. 
    156           '<label for="lp_nav" class="classic">'.__('Goto:').'</label> '.form::combo('lp_nav',$ws_combo). 
     158          '<label for="lp_nav" class="classic">'.__('Goto:').'</label> '.form::combo('lp_nav',$ws_combo,'','navigation'). 
    157159          ' <input type="submit" value="'.__('Ok').'" id="lp_submit" />'. 
    158160          '<input type="hidden" name="p" value="userPref" />'. 
     
    204206          '<form action="plugin.php" method="post">'. 
    205207          '<p class="anchor-nav">'. 
    206           '<label for="gp_nav" class="classic">'.__('Goto:').'</label> '.form::combo('gp_nav',$ws_combo). 
     208          '<label for="gp_nav" class="classic">'.__('Goto:').'</label> '.form::combo('gp_nav',$ws_combo,'','navigation'). 
    207209          ' <input type="submit" value="'.__('Ok').'" id="gp_submit" />'. 
    208210          '<input type="hidden" name="p" value="userPref" />'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map