增加事件的return false

This commit is contained in:
yafei Lee 2012-06-25 01:44:35 +08:00
parent 50324413c1
commit a98b3c7cfd
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ $(document).ready ->
content.show()
$(this).addClass('active')
$('#preview').removeClass('active')
false
$('#preview').click ->
content.hide()
@ -22,9 +23,11 @@ $(document).ready ->
preview.show()
$.post $(this).attr('url'), text: content.val(), (data)->
preview.html(data)
false
$('a#upload_photo').click ->
$('input[type=file]').show().focus().click().hide()
false
opt =
type: 'POST'