Browse Source

fix bug

pull/4/merge 0.9.5
xiaoz 4 years ago
parent
commit
fce2816f6c
  1. 2
      templates/default/index.php
  2. 12
      templates/default/static/embed.js

2
templates/default/index.php

@ -100,7 +100,7 @@
$property = ''; $property = '';
} }
?> ?>
<div id = "category-<?php echo $category['id']; ?>" class = "mdui-col-xs-12 mdui-typo-title" style = "margin-top:1.5em;"> <div id = "category-<?php echo $category['id']; ?>" class = "mdui-col-xs-12 mdui-typo-title cat-title" style = "margin-top:1.5em;">
<?php echo $category['name']; ?> <?php echo $property; ?> <?php echo $category['name']; ?> <?php echo $property; ?>
<span class = "mdui-typo-caption"><?php echo $category['description']; ?></span> <span class = "mdui-typo-caption"><?php echo $category['description']; ?></span>
</div> </div>

12
templates/default/static/embed.js

@ -3,9 +3,9 @@ function gotop(){
} }
$(".search").blur(function(data,status){ $(".search").blur(function(data,status){
var keywords = $(".search").val(); var keywords = $(".search").val();
console.log(keywords);
if( keywords == ''){ if( keywords == ''){
$(".mdui-typo-title").removeClass("mdui-hidden"); $(".cat-title").removeClass("mdui-hidden");
} }
}); });
@ -26,16 +26,16 @@ var h = holmes({
}, },
onFound(el) { onFound(el) {
// console.log('found', el); // console.log('found', el);
$(".mdui-typo-title").addClass("mdui-hidden"); $(".cat-title").addClass("mdui-hidden");
}, },
onInput(el) { onInput(el) {
$(".mdui-typo-title").addClass("mdui-hidden"); $(".cat-title").addClass("mdui-hidden");
}, },
onVisible(el) { onVisible(el) {
$(".mdui-typo-title").removeClass("mdui-hidden"); $(".cat-title").removeClass("mdui-hidden");
}, },
onEmpty(el) { onEmpty(el) {
$(".mdui-typo-title").removeClass("mdui-hidden"); $(".cat-title").removeClass("mdui-hidden");
} }
}); });
//鼠标移动到链接修改为原始URL //鼠标移动到链接修改为原始URL

Loading…
Cancel
Save