jquery update e.prevDefault warning

This commit is contained in:
Martin Müller 2014-05-02 11:01:43 +02:00
parent 3efcdada2d
commit 68e51e4a9d
2 changed files with 16 additions and 4 deletions

View File

@ -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