Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/script.js =================================================================== diff -u -r7036 -r7071 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/script.js (.../script.js) (revision 7036) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/script.js (.../script.js) (revision 7071) @@ -1188,4 +1188,19 @@ } } return $main_window.parent; + } + + function ClearBrowserSelection() + { + if (window.getSelection) { + // removeAllRanges will be supported by Opera from v 9+, do nothing by now + var selection = window.getSelection(); + if (selection.removeAllRanges) { // Mozilla & Opera 9+ +// alert('clearing FF') + window.getSelection().removeAllRanges(); + } + } else if (document.selection && !is.opera) { // IE +// alert('clearing IE') + document.selection.empty(); + } } \ No newline at end of file