Opened 19 months ago
Last modified 11 months ago
#9574 new enhancement
Reduce (or eliminate) errors when renaming a "tag".
| Reported by: | AdrianFritz | Owned by: | hasienda |
|---|---|---|---|
| Priority: | normal | Component: | TagsPlugin |
| Severity: | minor | Keywords: | |
| Cc: | rjollos, itamarost | Trac Release: | 0.12 |
Description
From #9064:comment:19
Is there a way to allow copy a single selected tag from "Current Tag" window (under /admin/tags/replace tab) and paste it in "New Tag:" field?
- Use Case: avoid new mistype when required to rename a tag, then you copy from and edits before changing.
Attachments (0)
Change History (7)
comment:1 follow-up: ↓ 2 Changed 19 months ago by AdrianFritz
comment:2 in reply to: ↑ 1 Changed 19 months ago by hasienda
Replying to AdrianFritz:
Replying to hasienda (#9064:comment:19):
You want to pre-set the 'New Tag:' input field with the selected tag, if only one is selected, right?
Wow!!, that´s even better, but simple manually copy enabled it´s enough. I think does not justify any more effort for such a use case.
I see. The problem is, that I didn't intentionally set any attribute to block the items from being copied, so this might be inherent to the drop-down (multiple) selection list design.
Hmm, this won't work without some dynamic HTML (read: JavaScript or AJAX). But sure, let me think about it.
I was thinking on a more simple way. Change field property (for "Current Tag" field) to just allow copying selected tag (only one selection).
Sure, as easy as we can get it.
Care to provide a patch?
No idea where to start, but i´ll start digging some code references to do that
Well, I know, that this will be a few lines of JS code using jQuery. But I have to investigate the appropriate methods, functions, object names and DOM element selector syntax too, because I haven’t done much with it by now. Re-using or at least studying existing code will be one of my approaches as well.
comment:3 Changed 19 months ago by AdrianFritz
Just pointing some references:
- KeywordSuggestPlugin behaves in a way this enhancement request can take: after filled few letters on respective field, it points possible keywords to be used, then you can mouse select and it looks like it copies into desired field.
- JavaScript -> jQuery -> Form Select -> Get selected value from select
comment:4 Changed 19 months ago by AdrianFritz
One more way (autocomplete instead of selecting from combo-box):
comment:5 Changed 19 months ago by rjollos
- Cc rjollos added
comment:6 Changed 18 months ago by itamarost
- Cc itamarost added
comment:7 Changed 11 months ago by AdrianFritz
- Summary changed from Allow copy & paste a tag to be renamed to Reduce (or eliminate) errors when renaming a "tag".
At th:10012 was suggested this library to improve UI data entry http://harvesthq.github.com/chosen/


Replying to hasienda (#9064:comment:19):
Wow!!, that´s even better, but simple manually copy enabled it´s enough. I think does not justify any more effort for such a use case.
I was thinking on a more simple way. Change field property (for "Current Tag" field) to just allow copying selected tag (only one selection).
Again, not required auto-copying. just
No idea where to start, but i´ll start digging some code references to do that