diff --git a/js/search.js b/js/search.js index a47bf19ca..2dcd4739b 100644 --- a/js/search.js +++ b/js/search.js @@ -222,13 +222,13 @@ return buf; }; - Search.renderTaggedPokemonRow = function(pokemon, tag, errorMessage) { + Search.renderTaggedPokemonRowInner = function(pokemon, tag, errorMessage) { var attrs = ''; if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'pokemon/'+toId(pokemon.species)+'" data-target="push"'; - var buf = '
  • '; + var buf = ''; // tag - buf += ''+tag+' '; + buf += ''+tag+' '; // icon buf += ''; @@ -239,7 +239,7 @@ var name = pokemon.species; var tagStart = (pokemon.forme ? name.length-pokemon.forme.length-1 : 0); if (tagStart) name = name.substr(0, tagStart) + ''+pokemon.species.substr(tagStart)+''; - buf += ''+name+' '; + buf += ''+name+' '; // error if (errorMessage) { @@ -282,16 +282,19 @@ buf += 'SpA
    '+pokemon.baseStats.spa+'
    '; buf += 'SpD
    '+pokemon.baseStats.spd+'
    '; buf += 'Spe
    '+pokemon.baseStats.spe+'
    '; + var bst = 0; + for (i in pokemon.baseStats) bst += pokemon.baseStats[i]; + buf += 'BST
    '+bst+'
    '; buf += '
    '; - buf += '
  • '; + buf += ''; return buf; }; Search.renderItemRow = function(item, matchStart, matchLength, errorMessage) { var attrs = ''; - if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'item/'+toId(item.name)+'" data-target="push"'; + if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'items/'+toId(item.name)+'" data-target="push"'; var buf = '
  • '; // icon @@ -322,7 +325,7 @@ }; Search.renderAbilityRow = function(ability, matchStart, matchLength, errorMessage) { var attrs = ''; - if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'ability/'+toId(ability.name)+'" data-target="push"'; + if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'abilities/'+toId(ability.name)+'" data-target="push"'; var buf = '
  • '; // name @@ -347,7 +350,7 @@ }; Search.renderMoveRow = function(move, matchStart, matchLength, errorMessage) { var attrs = ''; - if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'move/'+toId(move.name)+'" data-target="push"'; + if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'moves/'+toId(move.name)+'" data-target="push"'; var buf = '
  • '; // name @@ -397,7 +400,7 @@ }; Search.renderTaggedMoveRow = function(move, tag, errorMessage) { var attrs = ''; - if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'move/'+toId(move.name)+'" data-target="push"'; + if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'moves/'+toId(move.name)+'" data-target="push"'; var buf = '
  • '; // tag @@ -434,34 +437,9 @@ return buf; }; - Search.renderAbilityRow = function(ability, matchStart, matchLength, errorMessage) { - var attrs = ''; - if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'ability/'+toId(ability.name)+'" data-target="push"'; - var buf = '
  • '; - - // name - var name = ability.name; - if (matchLength) { - name = name.substr(0, matchStart)+''+name.substr(matchStart, matchLength)+''+name.substr(matchStart+matchLength); - } - buf += ''+name+' '; - - // error - if (errorMessage) { - buf += ''+errorMessage+' '; - buf += '
  • '; - return buf; - } - - buf += ''+Tools.escapeHTML(ability.shortDesc || ability.desc)+' '; - - buf += ''; - - return buf; - }; Search.renderTypeRow = function(type, matchStart, matchLength, errorMessage) { var attrs = ''; - if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'type/'+toId(type.name)+'" data-target="push"'; + if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'types/'+toId(type.name)+'" data-target="push"'; var buf = '
  • '; // name @@ -489,7 +467,7 @@ }; Search.renderCategoryRow = function(category, matchStart, matchLength, errorMessage) { var attrs = ''; - if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'category/'+toId(category.name)+'" data-target="push"'; + if (Search.urlRoot) attrs = ' href="'+Search.urlRoot+'categories/'+toId(category.name)+'" data-target="push"'; var buf = '
  • '; // name diff --git a/style/utilichart.css b/style/utilichart.css index 33528ffcf..f4467063d 100644 --- a/style/utilichart.css +++ b/style/utilichart.css @@ -140,6 +140,14 @@ color: #000000; font-size: 10pt; } +.utilichart .shortpokemonnamecol +{ + padding-top: 5px; + height: 23px; + width: 118px; + color: #000000; + font-size: 10pt; +} .utilichart .movenamecol { padding-top: 5px; @@ -160,13 +168,17 @@ { padding-top: 5px; height: 23px; - width: 42px; + width: 34px; border-right: 1px solid #CCCCCC; margin-right: 5px; text-align: center; color: #000000; font-size: 10pt; } +.utilichart .tagcol.shorttagcol +{ + margin-right: 1px; +} .utilichart .typecol { width: 70px;