forgot "event" as a parameter.
This commit is contained in:
parent
1cab3ca92c
commit
14dddc0c9e
|
@ -8,7 +8,7 @@ $(document).ready(function() {
|
||||||
source: "../../files/ajax/autocomplete.php",
|
source: "../../files/ajax/autocomplete.php",
|
||||||
minLength: 1
|
minLength: 1
|
||||||
});
|
});
|
||||||
$("button.delete").live('click', function() {
|
$("button.delete").live('click', function( event ) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var token=$(this).attr('data-token');
|
var token=$(this).attr('data-token');
|
||||||
var data="token="+token;
|
var data="token="+token;
|
||||||
|
@ -22,7 +22,7 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#newlink').submit(function(){
|
$('#newlink').submit(function( event ){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var path=$('#path').val();
|
var path=$('#path').val();
|
||||||
var expire=$('#expire_time').val()||0;
|
var expire=$('#expire_time').val()||0;
|
||||||
|
|
Loading…
Reference in New Issue