If a the page is reloaded or quit when a comment is being edit,
we ask if the customer really want to continue.
signed-off by: Stefan Lage <lagestfan@gmail.com>
//Hightlighted index in search result preview table\r
var currentIndex = -1;\r
\r
+// Check if a comment is editing\r
+window.onbeforeunload = function() {\r
+ if(editComment > 0){\r
+ return 'Are you sure you want to leave this page?';\r
+ }\r
+};\r
\r
/*\r
* Add folding and filtering facilities to class description page.\r