mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 00:07:03 +02:00
minor fixes
This commit is contained in:
@ -63,6 +63,14 @@
|
||||
'target':document
|
||||
});
|
||||
|
||||
shortcut.add("Enter", function() {
|
||||
var a=document.getElementById('ref'); if(a) a.value=''; load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count, ''), 0);
|
||||
},{
|
||||
'type':'keydown',
|
||||
'propagate':true,
|
||||
'target':document
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
@ -13,11 +13,12 @@
|
||||
|
||||
<?php foreach($terms as $term) {
|
||||
parse_str($term['term'], $s);
|
||||
if(isset($s['search'])) {
|
||||
?>
|
||||
<div class="resultrow">
|
||||
<a href="#" onclick="javascript:load_search_results('<?php print SEARCH_HELPER_URL; ?>', '<?php print $term['term']; ?>', 0); var a=document.getElementById('_search'); var v=decodeURIComponent('<?php print urlencode($s['search']); ?>'); v = v.replace(/\+/g, ' '); a.value=v; "><?php print $s['search']; ?></a></br />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -25,6 +26,4 @@
|
||||
|
||||
<?php
|
||||
|
||||
//print_r($terms);
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user