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());
} ,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