From: Roan Kattouw Date: Mon, 24 Jan 2011 02:58:12 +0000 (+0000) Subject: (bug 26827) Fix JS error on IE caused by the rename of {save,restore}StuffForIE(... X-Git-Tag: 1.31.0-rc.0~32397 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=61db3d8cab1e011f1033b60874979fe2481970c5;p=lhc%2Fweb%2Fwiklou.git (bug 26827) Fix JS error on IE caused by the rename of {save,restore}StuffForIE() not updating callers. Changed callers to use {save,restore}Selection() or {save,restore}CursorAndScrollTop() as seemed appropriate --- diff --git a/resources/jquery/jquery.textSelection.js b/resources/jquery/jquery.textSelection.js index 1f2a1dd59d..2d1633bceb 100644 --- a/resources/jquery/jquery.textSelection.js +++ b/resources/jquery/jquery.textSelection.js @@ -91,7 +91,7 @@ encapsulateSelection: function( options ) { // IE $(this).focus(); if ( context ) { - context.fn.restoreStuffForIE(); + context.fn.restoreCursorAndScrollTop(); } var selText = $(this).textSelection( 'getSelection' ); var scrollTop = this.scrollTop; @@ -398,4 +398,4 @@ scrollToCaretPosition: function( options ) { context.fn.saveSelection(); } return retval; -}; \ No newline at end of file +};