File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
plugins/reports/frontend/public Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 9797 } ) ;
9898 break ;
9999 case "preview-comment" :
100- var url = '/i/reports/preview?auth_token=' + countlyGlobal . auth_token + '&args=' + JSON . stringify ( { _id : scope . row . _id } ) + "&app_id=" + countlyCommon . ACTIVE_APP_ID ;
101- window . open ( url , "_blank" ) ;
100+ document . forms . previewemailform . action = '/i/reports/preview?args=' + JSON . stringify ( { _id : scope . row . _id } ) + "&app_id=" + countlyCommon . ACTIVE_APP_ID ;
101+ document . forms . previewemailform . querySelectorAll ( 'input[type=hidden]' ) [ 0 ] . value = countlyGlobal . auth_token ;
102+ document . forms . previewemailform . submit ( ) ;
102103 break ;
103104 default :
104105 return ;
Original file line number Diff line number Diff line change 9494 < el-dropdown-item icon = "el-icon-position" command = "send-comment" >
9595 Send Now
9696 </ el-dropdown-item >
97+ < form name = "previewemailform" method = "post" target = "_blank" >
98+ < input type = "hidden" name = "auth_token" >
99+ </ form >
97100 < el-dropdown-item icon = "el-icon-chat-dot-square" command = "preview-comment" >
98101 Preview
99102 </ el-dropdown-item >
You can’t perform that action at this time.
0 commit comments