mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Added test for undefined text
SVN revision: 1927
This commit is contained in:
parent
9955b765fd
commit
8788270e06
@ -1,5 +1,7 @@
|
|||||||
function getSelection(text)
|
function getSelection(text)
|
||||||
{
|
{
|
||||||
|
if (typeof text == 'undefined')
|
||||||
|
return "";
|
||||||
if (browser == 'MSIE') {
|
if (browser == 'MSIE') {
|
||||||
sel = document.selection;
|
sel = document.selection;
|
||||||
rng = sel.createRange();
|
rng = sel.createRange();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user