Changeset 445

Show
Ignore:
Timestamp:
05/27/08 03:10:21 (3 months ago)
Author:
eevee
Message:

Fixed dexsuggest boxes that are supposed to only show moves. (#320)

Location:
veekun/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/lib/Vee/Controller/Dex/Search.pm

    r441 r445  
    5454    type_mode   => { type => 'radio', options => [[ ignore => 'Ignore types' ], [ any => 'Find Pokémon with any type that matches one selected' ], [ all => 'Find Pokémon with exactly the selected type combination' ]], default => 'ignore', title => 'Select how types must be matched' }, 
    5555    type        => { type => 'checkbox', options => [ @TypeNames ], title => 'Select types for the Pokemon to match' }, 
    56     move        => { type => 'text', count => 4, class => 'js-dexsuggest js-dexsuggest-moves', title => 'Enter moves the Pokemon must have' }, 
     56    move        => { type => 'text', count => 4, class => 'js-dexsuggest js-dexsuggest-move', title => 'Enter moves the Pokemon must have' }, 
    5757    move_method => { type => 'checkbox', options => { level => 'Level up', machine => 'TM or HM', egg => 'Egg', tutor => 'Move Tutor' }, title => 'Select ways the Pokemon may learn the move' }, 
    5858    move_version=> { type => 'checkbox', options => [ map { [ $_ => $Icons{$_} ] } qw/rb y gs c rusa frlg e dp/ ], title => 'Select ways the Pokemon may learn the move' }, 
  • veekun/trunk/root/script/dexsuggest.js

    r354 r445  
    3737    if ($(dexsuggest_host_el).is(".js-dexsuggest-pokemon")) 
    3838        type = "pokemon"; 
    39     else if ($(dexsuggest_host_el).is(".js-dexsuggest-moves")) 
    40         type = "moves"; 
     39    else if ($(dexsuggest_host_el).is(".js-dexsuggest-move")) 
     40        type = "move"; 
    4141 
    4242    if (type)