jquery update e.prevDefault warning
This commit is contained in:
parent
3efcdada2d
commit
68e51e4a9d
|
@ -24,6 +24,17 @@
|
||||||
$("#popup .modal-body").html($("#container div.box",data).html());
|
$("#popup .modal-body").html($("#container div.box",data).html());
|
||||||
} ,error:function(data){}});
|
} ,error:function(data){}});
|
||||||
});
|
});
|
||||||
|
function stopLoad(e){
|
||||||
|
if (!e)
|
||||||
|
e = window.event;
|
||||||
|
if (e.preventDefault)
|
||||||
|
e.preventDefault();
|
||||||
|
if (e.stopPropagation) {
|
||||||
|
e.stopPropagation();
|
||||||
|
}else{
|
||||||
|
e.cancelBubble = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
function event(where){
|
function event(where){
|
||||||
/* Hotfix Ticket: 215*/
|
/* Hotfix Ticket: 215*/
|
||||||
$(where+' img').each(function(){ $(this).attr('src',$(this).attr('src')+ '?' + (new Date()).getTime()); });
|
$(where+' img').each(function(){ $(this).attr('src',$(this).attr('src')+ '?' + (new Date()).getTime()); });
|
||||||
|
@ -43,8 +54,7 @@
|
||||||
$(where+" form").submit(function(e){
|
$(where+" form").submit(function(e){
|
||||||
if(!$(this).hasClass("hide-form") && $(this).attr('enctype')!='multipart/form-data' ){
|
if(!$(this).hasClass("hide-form") && $(this).attr('enctype')!='multipart/form-data' ){
|
||||||
$(":input[ name *= '_wysihtml5_mod' ]",this).remove();
|
$(":input[ name *= '_wysihtml5_mod' ]",this).remove();
|
||||||
e.stopPropagation();
|
//stopLoad(e);
|
||||||
//e.preventDefault();
|
|
||||||
if($(this).attr("back"))
|
if($(this).attr("back"))
|
||||||
back=window.location.href;
|
back=window.location.href;
|
||||||
else
|
else
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue