プロジェクト

全般

プロフィール

Vote #72990

完了

Lost text after selection in issue list with IE

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
71
issue_org_id:
12650
author_id:
61731
assigned_to_id:
0
comments:
14
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
60
ステータス-->[Closed]

説明

Hi there,

I just encountered some wired behaviour which is reproducible in nearly every redmine installation.

I tried this with Internet Explorer 9.0.8.

You can mark some text on the roadmap list, which instantly disappear after selection.

I attached two screenshots, to illustrate it. These screenshots are taken from redmine.org.

Maybe this is related to the context menu js.

Best regards,
Daniel


journals

--------------------------------------------------------------------------------
Another JS related issue.
Maybe this could be solved by upgrading to newer libraries? Can someone confirm this on its own Redmine?

Maybe this could find its way in the next bug fix release as this is sometime a little bit annoying. ;-)
--------------------------------------------------------------------------------
I cannot reproduce.
Redmine 2.2.3
Firefox 19.0.2
Windows 7
--------------------------------------------------------------------------------
Yes, as mentioned above is this a IE related issue. ;-)
WebKit and gecko engines won't have this problem.
--------------------------------------------------------------------------------
By the way, I haven't checked it on ie 10. Will give it a try when I'm home.
--------------------------------------------------------------------------------
IE 9.0.14 has this problem
--------------------------------------------------------------------------------
I rechecked it now on IE 10. This occurs there too. So this is not a Problem of outdated Browsers like IE6, 7 & 8. It's a problem of the next generation too.
--------------------------------------------------------------------------------
I update this.
The text is lost in every list which uses this file: source:trunk/public/javascripts/context_menu.js

I debugged this. The text gets lost after a return in this file: source:trunk/public/javascripts/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js

It seems that this problem gets huger in the latest IE version. If I ctrl+click to multiselect issues, all text of the selected items get lost.

Maybe an upgrade of jquery and jqueryui would solve this problem. This bug makes the multiselection in Internet Explorer not really useful.
--------------------------------------------------------------------------------
Lower versions of Redmine (e.g. 2.0.x and 2.1.x) are also affected, too.
--------------------------------------------------------------------------------
Jongwook Choi wrote:
> Lower versions of Redmine (e.g. 2.0.x and 2.1.x) are also affected, too.

Thanks for the hint. I know this, I've set it initially to 2.1.4, but changed it to the most recent version as this still occurs there. :-)
Otherwise this one would maybe get lower priority as we thing this one is outdated. ;-)
--------------------------------------------------------------------------------
Daniel Felix wrote:
> I update this.
> The text is lost in every list which uses this file: source:trunk/public/javascripts/context_menu.js
>
yes, that one is the problem. And this one causes it:
<pre>
function contextMenuClearDocumentSelection() {
// TODO
if (document.selection) {
document.selection.clear(); // IE
} else {
window.getSelection().removeAllRanges();
}
}
</pre>

The @document.selection.clear()@ causes the selected text to disappear. According to doc from M$:
http://msdn.microsoft.com/en-us/library/ie/ms535869%28v=vs.85%29.aspx
the clear deletes the content of the selection. Replacing it with @.empty()@ seems to do the trick.

I don't claim to understand what the purpose of this function is. Why? Removing the line in question completely seems no to have any negative effect...

--------------------------------------------------------------------------------
I confirmed that using .empty() fixed the issue, thanks. Committed in r11750.
The purpose of this line is to avoid the text selection to appear when selecting multiple issues at once with the shift key pressed.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,12710,Ticket selection removes text
duplicates,Closed,12951,Multi-lines select by control+clicking wipes out title texts on IE8
duplicates,Closed,8783,Words selected from issue list disappeared

Admin Redmine さんが約4年前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン2.3.1_71 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0