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());
|
||||
} ,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){
|
||||
/* Hotfix Ticket: 215*/
|
||||
$(where+' img').each(function(){ $(this).attr('src',$(this).attr('src')+ '?' + (new Date()).getTime()); });
|
||||
|
@ -43,8 +54,7 @@
|
|||
$(where+" form").submit(function(e){
|
||||
if(!$(this).hasClass("hide-form") && $(this).attr('enctype')!='multipart/form-data' ){
|
||||
$(":input[ name *= '_wysihtml5_mod' ]",this).remove();
|
||||
e.stopPropagation();
|
||||
//e.preventDefault();
|
||||
//stopLoad(e);
|
||||
if($(this).attr("back"))
|
||||
back=window.location.href;
|
||||
else
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue