Index: trunk/extensions/MetavidWiki/skins/add_media_wizard.js |
— | — | @@ -107,7 +107,7 @@ |
108 | 108 | r.moveEnd('character', o.value.length) |
109 | 109 | if (r.text == '') return o.value.length |
110 | 110 | return o.value.lastIndexOf(r.text) |
111 | | - } else return o.selectionStart |
| 111 | + } else return o.selectionStart; |
112 | 112 | } |
113 | 113 | var getTextCusorEndPos = function (o){ |
114 | 114 | if (o.createTextRange) { |
— | — | @@ -115,14 +115,14 @@ |
116 | 116 | r.moveStart('character', -o.value.length); |
117 | 117 | return r.text.length; |
118 | 118 | } else{ |
119 | | - return o.selectionEnd |
| 119 | + return o.selectionEnd; |
120 | 120 | } |
121 | 121 | } |
122 | 122 | caret_pos.s = getTextCusorStartPos( txtarea ); |
123 | 123 | caret_pos.e = getTextCusorEndPos( txtarea ); |
124 | 124 | caret_pos.text = txtarea.value; |
125 | 125 | //show the loading screen: |
126 | | - var elm = document.getElementById('modalbox') |
| 126 | + var elm = document.getElementById('modalbox'); |
127 | 127 | if(elm){ |
128 | 128 | //use jquery to re-display the search |
129 | 129 | if( typeof $j != 'undefined'){ |