OSDN Git Service

opera対応(document.selectionに&& !window.operaを追加)
authortnantoka <t@t-no-macbook.local>
Sat, 16 Jan 2010 17:19:35 +0000 (02:19 +0900)
committertnantoka <t@t-no-macbook.local>
Sat, 16 Jan 2010 17:19:35 +0000 (02:19 +0900)
jquery.tagget.js

index dc6c390..39a2b3e 100644 (file)
                        var start, end;
 
                        // IE
-                       if (document.selection) {
+                       if (document.selection && !window.opera) {
 
 //                             t.focus(); // focusなしでもいける
 
 
                        var x, y;
 
-                       if (document.selection) {
+                       if (document.selection && !window.opera) {
                        
                                var range = document.selection.createRange();
                                x = range.offsetLeft + 
                        t.focus(); 
 
                        // for IE
-                       if (document.selection) {
+                       if (document.selection && !window.opera) {
                                
                                // 選択範囲を取得
                                var range = document.selection.createRange();
                        t.focus(); 
 
                        // IE
-                       if (document.selection) {
+                       if (document.selection && !window.opera) {
                        
                                var range = document.selection.createRange();
                                range.text = func(range.text);