forgot "event" as a parameter.

This commit is contained in:
Jakob Sack 2011-06-19 14:23:24 +02:00
parent 1cab3ca92c
commit 14dddc0c9e
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ $(document).ready(function() {
source: "../../files/ajax/autocomplete.php",
minLength: 1
});
$("button.delete").live('click', function() {
$("button.delete").live('click', function( event ) {
event.preventDefault();
var token=$(this).attr('data-token');
var data="token="+token;
@ -22,7 +22,7 @@ $(document).ready(function() {
}
});
});
$('#newlink').submit(function(){
$('#newlink').submit(function( event ){
event.preventDefault();
var path=$('#path').val();
var expire=$('#expire_time').val()||0;