Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update

  • Loading branch information...
commit 399731a8e3e7a2560528b17a0197cfc79af6cf69 1 parent 6606f42
@williamjxj authored
Showing with 10 additions and 4 deletions.
  1. +5 −2 templates/7/pk1.tpl.html
  2. +5 −2 templates/7/pk2.tpl.html
View
7 templates/7/pk1.tpl.html
@@ -36,7 +36,7 @@
</div>
</div>
</form>
- <div id="result1"></div>
+ <div id="result1" class="alert"></div>
</div>
<script type="text/javascript">
$(function() {
@@ -47,7 +47,10 @@
});
var validator = $('#form_pk1').validate({
- rules: { "comment": "required" },
+ rules: {
+ "comment": "required",
+ "title": "required"
+ },
messages: { comment: "" },
highlight: function(label) {
$(label).closest('.control-group').addClass('error');
View
7 templates/7/pk2.tpl.html
@@ -36,7 +36,7 @@
</div>
</div>
</form>
- <div id="result2"></div>
+ <div id="result2" class="alert"></div>
</div>
<script type="text/javascript">
$(function() {
@@ -47,7 +47,10 @@
});
var validator = $('#form_pk2').validate({
- rules: { "comment": "required" },
+ rules: {
+ "comment": "required",
+ "title": "required"
+ },
messages: { comment: "" },
highlight: function(label) {
$(label).closest('.control-group').addClass('error');
Please sign in to comment.
Something went wrong with that request. Please try again.