diff --git a/web/documentserver-example/csharp-mvc/Views/Home/Editor.aspx b/web/documentserver-example/csharp-mvc/Views/Home/Editor.aspx index 14d4d78b..698f5146 100644 --- a/web/documentserver-example/csharp-mvc/Views/Home/Editor.aspx +++ b/web/documentserver-example/csharp-mvc/Views/Home/Editor.aspx @@ -185,10 +185,9 @@ }; // the user is mentioned in a comment config.events['onRequestSendNotify'] = function (event) { - var actionLink = JSON.stringify(event.data.actionLink); - console.log("onRequestSendNotify:"); - console.log(event.data); - console.log("Link to comment: " + replaceActionLink(location.href, actionLink)); + event.data.actionLink = replaceActionLink(location.href, event.data.actionLink); + var data = JSON.stringify(event.data); + innerAlert("onRequestSendNotify: " + data); }; <% } %> diff --git a/web/documentserver-example/csharp/DocEditor.aspx b/web/documentserver-example/csharp/DocEditor.aspx index 858e3d34..2324251c 100644 --- a/web/documentserver-example/csharp/DocEditor.aspx +++ b/web/documentserver-example/csharp/DocEditor.aspx @@ -190,10 +190,9 @@ }; // the user is mentioned in a comment config.events['onRequestSendNotify'] = function (event) { - var actionLink = JSON.stringify(event.data.actionLink); - console.log("onRequestSendNotify:"); - console.log(event.data); - console.log("Link to comment: " + replaceActionLink(location.href, actionLink)); + event.data.actionLink = replaceActionLink(location.href, event.data.actionLink); + var data = JSON.stringify(event.data); + innerAlert("onRequestSendNotify: " + data); }; <% } %> diff --git a/web/documentserver-example/java-spring/src/main/resources/templates/editor.html b/web/documentserver-example/java-spring/src/main/resources/templates/editor.html index 3b3f5cfb..0999b526 100755 --- a/web/documentserver-example/java-spring/src/main/resources/templates/editor.html +++ b/web/documentserver-example/java-spring/src/main/resources/templates/editor.html @@ -149,12 +149,9 @@ }); }; config.events['onRequestSendNotify'] = function (event) { - var actionLink = JSON.stringify(event.data.actionLink); - var replaceLink =replaceActionLink(location.href, actionLink); - docEditor.setActionLink(replaceLink); - console.log("onRequestSendNotify:"); - console.log(event.data); - console.log("Link to comment: " + replaceLink); + event.data.actionLink = replaceActionLink(location.href, event.data.actionLink); + var data = JSON.stringify(event.data); + innerAlert("onRequestSendNotify: " + data); }; } diff --git a/web/documentserver-example/java/src/main/webapp/editor.jsp b/web/documentserver-example/java/src/main/webapp/editor.jsp index 709d8537..836bbe7d 100644 --- a/web/documentserver-example/java/src/main/webapp/editor.jsp +++ b/web/documentserver-example/java/src/main/webapp/editor.jsp @@ -168,10 +168,9 @@ }; // the user is mentioned in a comment config.events['onRequestSendNotify'] = function (event) { - var actionLink = JSON.stringify(event.data.actionLink); - console.log("onRequestSendNotify:"); - console.log(event.data); - console.log("Link to comment: " + replaceActionLink(location.href, actionLink)); + event.data.actionLink = replaceActionLink(location.href, event.data.actionLink); + var data = JSON.stringify(event.data); + innerAlert("onRequestSendNotify: " + data); }; <% } %> diff --git a/web/documentserver-example/php/doceditor.php b/web/documentserver-example/php/doceditor.php index 8ef3fb92..5a7cec9c 100644 --- a/web/documentserver-example/php/doceditor.php +++ b/web/documentserver-example/php/doceditor.php @@ -472,10 +472,9 @@ }; // the user is mentioned in a comment config.events['onRequestSendNotify'] = function (event) { - var actionLink = JSON.stringify(event.data.actionLink); - console.log("onRequestSendNotify:"); - console.log(event.data); - console.log("Link to comment: " + replaceActionLink(location.href, actionLink)); + event.data.actionLink = replaceActionLink(location.href, event.data.actionLink); + var data = JSON.stringify(event.data); + innerAlert("onRequestSendNotify: " + data); }; diff --git a/web/documentserver-example/python/templates/editor.html b/web/documentserver-example/python/templates/editor.html index 90210c47..c0a117fe 100644 --- a/web/documentserver-example/python/templates/editor.html +++ b/web/documentserver-example/python/templates/editor.html @@ -181,10 +181,9 @@ }; // the user is mentioned in a comment config.events['onRequestSendNotify'] = function (event) { - var actionLink = JSON.stringify(event.data.actionLink); - console.log("onRequestSendNotify:"); - console.log(event.data); - console.log("Link to comment: " + replaceActionLink(location.href, actionLink)); + event.data.actionLink = replaceActionLink(location.href, event.data.actionLink); + var data = JSON.stringify(event.data); + innerAlert("onRequestSendNotify: " + data); }; {% endif %} diff --git a/web/documentserver-example/ruby/app/views/home/editor.html.erb b/web/documentserver-example/ruby/app/views/home/editor.html.erb index 472a5851..73cf88b5 100644 --- a/web/documentserver-example/ruby/app/views/home/editor.html.erb +++ b/web/documentserver-example/ruby/app/views/home/editor.html.erb @@ -159,10 +159,9 @@ }; // the user is mentioned in a comment config.events['onRequestSendNotify'] = function (event) { - var actionLink = JSON.stringify(event.data.actionLink); - console.log("onRequestSendNotify:"); - console.log(event.data); - console.log("Link to comment: " + replaceActionLink(location.href, actionLink)); + event.data.actionLink = replaceActionLink(location.href, event.data.actionLink); + var data = JSON.stringify(event.data); + innerAlert("onRequestSendNotify: " + data); }; <% end %>