Move unhiding code to js file.

This commit is contained in:
Michal Čihař
2010-04-02 13:09:36 +02:00
parent 686f330dc9
commit 6f602b6777
2 changed files with 7 additions and 2 deletions

View File

@@ -171,4 +171,10 @@ function fast_filter(value){
} }
} }
document.getElementById('fast_filter').disabled=false; document.getElementById('fast_filter').disabled=false;
} }
/* Performed on load */
jQuery(document).ready(function(){
/* Display filter */
jQuery('#NavFilter').css('display', 'inline');
});

View File

@@ -326,7 +326,6 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
onkeyup="setTimeout(function(word){ return function(){ fast_filter(word);}}(this.value),1000);" onkeyup="setTimeout(function(word){ return function(){ fast_filter(word);}}(this.value),1000);"
style="width:90%;padding:0 -20px 0 0; padding:2px;" style="width:90%;padding:0 -20px 0 0; padding:2px;"
onfocus="this.select();" /> onfocus="this.select();" />
<script type="text/javascript">document.getElementById('NavFilter').style.display='';</script>
</span> </span>
<?php <?php
} }