Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 576439 Details for
Bug 811167
editarea does not work properly with IE9
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to make editarea work well with IE9
editarea-bz810991.patch (text/plain), 1.37 KB, created by
Stephen Herr
on 2012-04-10 10:21:13 UTC
(
hide
)
Description:
Patch to make editarea work well with IE9
Filename:
MIME Type:
Creator:
Stephen Herr
Created:
2012-04-10 10:21:13 UTC
Size:
1.37 KB
patch
obsolete
>diff -uNr editarea.old/edit_area/edit_area.css editarea/edit_area/edit_area.css >--- editarea.old/edit_area/edit_area.css 2010-01-14 01:56:34.000000000 -0500 >+++ editarea/edit_area/edit_area.css 2012-04-09 17:27:12.995918527 -0400 >@@ -143,7 +143,7 @@ > } > > .hidden{ >- opacity: 0.2; >+ opacity: 0; > filter:alpha(opacity=20); > } > >diff -uNr editarea.old/edit_area/manage_area.js editarea/edit_area/manage_area.js >--- editarea.old/edit_area/manage_area.js 2010-01-14 01:56:34.000000000 -0500 >+++ editarea/edit_area/manage_area.js 2012-04-09 17:29:33.775855141 -0400 >@@ -200,11 +200,14 @@ > return sel; > }; > >+ // IE < 9 >+ var need_createRange = !("selectionStart" in document.createElement("textarea")); >+ > // set IE position in Firefox mode (textarea.selectionStart and textarea.selectionEnd) > EditArea.prototype.getIESelection= function(){ > var selectionStart, selectionEnd, range, stored_range; > >- if( !this.isIE ) >+ if( !this.isIE || !need_createRange ) > return false; > > // make it work as nowrap mode (easier for range manipulation with lineHeight) >@@ -246,7 +249,7 @@ > EditArea.prototype.setIESelection= function(){ > var a = this.textarea, nbLineStart, nbLineEnd, range; > >- if( !this.isIE ) >+ if( !this.isIE || !need_createRange ) > return false; > > nbLineStart = a.value.substr(0, a.selectionStart).split("\n").length - 1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 811167
: 576439