From: jenkins-bot Date: Tue, 6 Feb 2018 22:15:30 +0000 (+0000) Subject: Merge "jquery.textSelection: Move copyright comments to the top of the file" X-Git-Tag: 1.31.0-rc.0~684 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles_versions%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=99d4c6b5777c703f95cefd387ac2b40b97dca125;hp=16c80e429be5904fb42a93f260f8de3d18f0c692;p=lhc%2Fweb%2Fwiklou.git Merge "jquery.textSelection: Move copyright comments to the top of the file" --- diff --git a/resources/src/jquery/jquery.textSelection.js b/resources/src/jquery/jquery.textSelection.js index d22fc4b549..dc9d4cfc2c 100644 --- a/resources/src/jquery/jquery.textSelection.js +++ b/resources/src/jquery/jquery.textSelection.js @@ -1,5 +1,11 @@ /** * These plugins provide extra functionality for interaction with textareas. + * + * - encapsulateSelection: Ported from skins/common/edit.js by Trevor Parscal + * © 2009 Wikimedia Foundation (GPLv2) - http://www.wikimedia.org + * - getCaretPosition, scrollToCaretPosition: Ported from Wikia's LinkSuggest extension + * https://github.com/Wikia/app/blob/c0cd8b763/extensions/wikia/LinkSuggest/js/jquery.wikia.linksuggest.js + * © 2010 Inez Korczyński (korczynski@gmail.com) & Jesús Martínez Novo (martineznovo@gmail.com) (GPLv2) */ ( function ( $ ) { $.fn.textSelection = function ( command, options ) { @@ -42,9 +48,6 @@ return retval; }, /** - * Ported from skins/common/edit.js by Trevor Parscal - * (c) 2009 Wikimedia Foundation (GPLv2) - http://www.wikimedia.org - * * Inserts text at the beginning and end of a text selection, optionally * inserting text at the caret when selection is empty. * @@ -166,9 +169,6 @@ } ); }, /** - * Ported from Wikia's LinkSuggest extension - * https://svn.wikia-code.com/wikia/trunk/extensions/wikia/LinkSuggest - * * Get the position (in resolution of bytes not necessarily characters) * in a textarea * @@ -214,9 +214,6 @@ } ); }, /** - * Ported from Wikia's LinkSuggest extension - * https://svn.wikia-code.com/wikia/trunk/extensions/wikia/LinkSuggest - * * Scroll a textarea to the current cursor position. You can set the cursor * position with setSelection() *