forked from extern/egroupware
fix add-favorite method to NOT bubble and giving a CSP warning instead of running
This commit is contained in:
parent
2de3cdb780
commit
2bb7b7565c
@ -247,7 +247,7 @@ var AppJS = Class.extend(
|
|||||||
// 'blank' is the special name for no filters, send that instead of the nice translated name
|
// 'blank' is the special name for no filters, send that instead of the nice translated name
|
||||||
var safe_name = jQuery.isEmptyObject(state) || jQuery.isEmptyObject(state.state||state.filter) ? 'blank' : state.name.replace(/[^A-Za-z0-9-_]/g, '_');
|
var safe_name = jQuery.isEmptyObject(state) || jQuery.isEmptyObject(state.state||state.filter) ? 'blank' : state.name.replace(/[^A-Za-z0-9-_]/g, '_');
|
||||||
egw.open('',this.appname,'list',{'favorite': safe_name},this.appname);
|
egw.open('',this.appname,'list',{'favorite': safe_name},this.appname);
|
||||||
|
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -365,6 +365,9 @@ var AppJS = Class.extend(
|
|||||||
// Popup
|
// Popup
|
||||||
this.favorite_popup.dialog("open");
|
this.favorite_popup.dialog("open");
|
||||||
console.log(this);
|
console.log(this);
|
||||||
|
|
||||||
|
// Stop the normal bubbling if this is called on click
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user