|
|
@@ -15,7 +15,7 @@ MWF.xAction.RestActions.Action["x_okr_assemble_control"] = new Class({
|
|
|
var url = this.action.actions.getAttachmentData.uri;
|
|
|
url = url.replace("{id}", encodeURIComponent(id));
|
|
|
url = url.replace("{documentid}", encodeURIComponent(documentid));
|
|
|
- window.open(this.actionAttachment.address+url);
|
|
|
+ window.open(o2.filterUrl(this.actionAttachment.address+url));
|
|
|
}.bind(this));
|
|
|
},
|
|
|
getAttachmentStream: function(id, documentid){
|
|
|
@@ -23,7 +23,7 @@ MWF.xAction.RestActions.Action["x_okr_assemble_control"] = new Class({
|
|
|
var url = this.action.actions.getAttachmentStream.uri;
|
|
|
url = url.replace("{id}", encodeURIComponent(id));
|
|
|
url = url.replace("{documentid}", encodeURIComponent(documentid));
|
|
|
- window.open(this.action.address+url);
|
|
|
+ window.open(o2.filterUrl(this.action.address+url));
|
|
|
}.bind(this));
|
|
|
},
|
|
|
|
|
|
@@ -32,7 +32,7 @@ MWF.xAction.RestActions.Action["x_okr_assemble_control"] = new Class({
|
|
|
var url = this.action.actions.getAttachmentData.uri;
|
|
|
url = url.replace("{id}", encodeURIComponent(id));
|
|
|
url = url.replace("{documentid}", encodeURIComponent(documentid));
|
|
|
- if (callback) callback(this.action.address+url);
|
|
|
+ if (callback) callback(o2.filterUrl(this.action.address+url));
|
|
|
}.bind(this));
|
|
|
},
|
|
|
|
|
|
@@ -44,7 +44,7 @@ MWF.xAction.RestActions.Action["x_okr_assemble_control"] = new Class({
|
|
|
var url = this.action.actions.getReportAttachmentData.uri;
|
|
|
url = url.replace("{id}", encodeURIComponent(id));
|
|
|
url = url.replace("{documentid}", encodeURIComponent(documentid));
|
|
|
- window.open(this.actionAttachment.address+url);
|
|
|
+ window.open(o2.filterUrl(this.actionAttachment.address+url));
|
|
|
}.bind(this));
|
|
|
},
|
|
|
getReportAttachmentStream: function(id, documentid){
|
|
|
@@ -52,7 +52,7 @@ MWF.xAction.RestActions.Action["x_okr_assemble_control"] = new Class({
|
|
|
var url = this.action.actions.getReportAttachmentStream.uri;
|
|
|
url = url.replace("{id}", encodeURIComponent(id));
|
|
|
url = url.replace("{documentid}", encodeURIComponent(documentid));
|
|
|
- window.open(this.action.address+url);
|
|
|
+ window.open(o2.filterUrl(this.action.address+url));
|
|
|
}.bind(this));
|
|
|
},
|
|
|
deleteReportAttachment: function(id, documentid, success, failure, async){
|