summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/media/js/jquery-fieldselection.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/skins/default/media/js/jquery-fieldselection.min.js')
-rw-r--r--askbot/skins/default/media/js/jquery-fieldselection.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/askbot/skins/default/media/js/jquery-fieldselection.min.js b/askbot/skins/default/media/js/jquery-fieldselection.min.js
new file mode 100644
index 00000000..c2abde0b
--- /dev/null
+++ b/askbot/skins/default/media/js/jquery-fieldselection.min.js
@@ -0,0 +1 @@
+(function(){var a={getSelection:function(){var b=this.jquery?this[0]:this;return(("selectionStart" in b&&function(){var c=b.selectionEnd-b.selectionStart;return{start:b.selectionStart,end:b.selectionEnd,length:c,text:b.value.substr(b.selectionStart,c)}})||(document.selection&&function(){b.focus();var d=document.selection.createRange();if(d==null){return{start:0,end:b.value.length,length:0}}var c=b.createTextRange();var e=c.duplicate();c.moveToBookmark(d.getBookmark());e.setEndPoint("EndToStart",c);return{start:e.text.length,end:e.text.length+d.text.length,length:d.text.length,text:d.text}})||function(){return{start:0,end:b.value.length,length:0}})()},replaceSelection:function(){var b=this.jquery?this[0]:this;var c=arguments[0]||"";return(("selectionStart" in b&&function(){b.value=b.value.substr(0,b.selectionStart)+c+b.value.substr(b.selectionEnd,b.value.length);return this})||(document.selection&&function(){b.focus();document.selection.createRange().text=c;return this})||function(){b.value+=c;return this})()}};jQuery.each(a,function(b){jQuery.fn[b]=this})})(); \ No newline at end of file