Permalink
Browse files

update

  • Loading branch information...
1 parent 399731a commit e610f95dd898620e94e1021479e25d3b371f5981 @williamjxj committed Dec 6, 2012
Showing with 7 additions and 10 deletions.
  1. +3 −6 templates/7/pk1.tpl.html
  2. +3 −3 templates/7/pk2.tpl.html
  3. +1 −1 templates/7/reping.tpl.html
View
9 templates/7/pk1.tpl.html 100644 → 100755
@@ -36,7 +36,7 @@
</div>
</div>
</form>
- <div id="result1" class="alert"></div>
+ <div id="result1"></div>
</div>
<script type="text/javascript">
$(function() {
@@ -47,10 +47,7 @@
});
var validator = $('#form_pk1').validate({
- rules: {
- "comment": "required",
- "title": "required"
- },
+ rules: { "comment": "required" },
messages: { comment: "" },
highlight: function(label) {
$(label).closest('.control-group').addClass('error');
@@ -78,7 +75,7 @@
if($('#result1').is(':visible'))
$('#result1').hide();
if(data=='N') {
- $('#result1').html('重复插入,无法添加评论, 请重试。').show();
+ $('#result1').html('验证出错,无法添加评论, 请重试。').show();
return false;
}
$('html,body').animate({ scrollTop: $('#pk1a').offset().top }, 100);
View
6 templates/7/pk2.tpl.html 100644 → 100755
@@ -1,5 +1,5 @@
<style type="text/css">
-#form_pk1 {
+#form_pk2 {
margin-top:12px;
}
.form-horizontal .controls {
@@ -13,7 +13,7 @@
{/if}
<div class="control-group">
<div class="controls">
- <input type="text" id="title2" name="title" styel="width:90%" placeholder="关于发布者的简要说明/声明" />
+ <input type="text" id="title2" name="title" style="width:90%" placeholder="关于发布者的简要说明/声明" />
</div>
</div>
<div class="control-group">
@@ -78,7 +78,7 @@
if($('#result2').is(':visible'))
$('#result2').hide();
if(data=='N') {
- $('#result2').html('重复插入,无法添加评论, 请重试。').show();
+ $('#result2').html('验证出错,无法添加评论, 请重试。').show();
return false;
}
$('html,body').animate({ scrollTop: $('#pk2a').offset().top }, 100);
View
2 templates/7/reping.tpl.html 100644 → 100755
@@ -3,7 +3,7 @@
<div class="reping_item">
<div class="t_info"><i class="icon-gift"></i> {$pk.author} <br>
<span class="t_area">{$pk.area}</span></div>
- <div class="t_title">{$pk.title} - {$pk.role} </div>
+ <div class="t_title">{$pk.title}</div>
<div class="t_txt">{$pk.comment} <span class="t_date"> {$pk.created} <span class="t_reply"><a href="javascript:;" class="a_zhichi" id="{$pk.id}">支持</a></span> </span> </div>
</div>
{/foreach} </div>

0 comments on commit e610f95

Please sign in to comment.