This repository was archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Quick Edit tweak #5230
Merged
Merged
Quick Edit tweak #5230
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2d32bd6
Tweaked content of inline CSS editor related column.
larz0 ef7ce50
Tweaked content of inline CSS editor related column.
larz0 c0200f7
Fixes based on @peterflynn's feedback.
larz0 72c1334
Merge branch 'master' of https://github.com/adobe/brackets into larz/…
larz0 3611b40
Escaped range.name based on NJ's feedback.
larz0 5a582b9
Fix unit test for new string format in MultiRangeInlineEditor
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,9 +74,9 @@ define(function (require, exports, module) { | |
| SearchResultItem.prototype.$listItem = null; | ||
|
|
||
| function _updateRangeLabel(listItem, range) { | ||
| var text = range.name + " " + range.textRange.document.file.name + " : " + (range.textRange.startLine + 1); | ||
| listItem.text(text); | ||
| listItem.attr("title", text); | ||
| var text = range.name + " <span class='related-file'>— " + range.textRange.document.file.name + " : " + (range.textRange.startLine + 1) + "</span>"; | ||
| listItem.html(text); | ||
| listItem.attr("title", range.name + " " + range.textRange.document.file.name + " : " + (range.textRange.startLine + 1)); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You might be able to replace this with
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks Peter, it's so much better! |
||
| } | ||
|
|
||
| /** | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The filename needs to be HTML-escaped now --
StringUtils.htmlEscape(range.textRange.document.file.name)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we might need to escape
range.nametoo. It happens that it's not necessary for CSS selectors (although it almost is, with>) and JS methods, but in the future if we had, say, LESS support, then there would be things like&in there, and there are other things people could use MultiRangeInlineEditor for that might have syntax that would need to be escaped.