|
发表于 2013-9-11 11:02:08
|
显示全部楼层
1.X5.2.6版本中可以在onBrowseDocClick事件中操作,该版本预计十一左右发布
2.X5.2.5版本中比较复杂,需要在附件组件上绑定一个a标签,在a标签的click事件中操作
可以参考- $(function() {
- $('#attSendDoc a').live('mouseover', function() {
- var $this = $(this);
- if ($this.attr('name').indexOf('_docDisplay') != -1) {
- $this.attr('onclick', 'function(){return;}');
- }
- });
- $('#attSendDoc a').live(
- 'click',
- function() {
- var $this = $(this);
- if ($this.attr('name').indexOf('_docDisplay') != -1) {
- var docpath = $this.attr('docpath');
- var fileID = $this.attr('fileID');
- var url = justep.Doc
- .getdocServerAction(docpath,
- '/repository/file/view/' + fileID
- + '/last/content');
- var pic = document.getElementById("image1");
- pic.src = url;
- }
- });
- });
复制代码 |
|