Ticket #9574 (new enhancement)

Opened 1 year ago

Last modified 10 months ago

Reduce (or eliminate) errors when renaming a "tag".

Reported by: AdrianFritz Assigned to: 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

Change History

(follow-up: ↓ 2 ) 12/03/11 04:48:25 changed by 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.

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).

Wonder how complex your tags must be, if you ask for auto-copying them.

Again, not required auto-copying. just

Care to provide a patch?

No idea where to start, but i´ll start digging some code references to do that

(in reply to: ↑ 1 ) 12/03/11 22:57:38 changed 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.

12/04/11 14:00:25 changed by AdrianFritz

Just pointing some references:

  1. 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.
  2. JavaScript? -> jQuery -> Form Select -> Get selected value from select
    1. http://www.java2s.com/Code/JavaScript/jQuery/Getselectedvaluefromselect.htm

12/04/11 14:04:39 changed by AdrianFritz

One more way (autocomplete instead of selecting from combo-box):

  1. http://jqueryui.com/demos/autocomplete/#combobox

12/05/11 06:59:19 changed by rjollos

  • cc set to rjollos.

12/25/11 18:08:06 changed by itamarost

  • cc changed from rjollos to rjollos, itamarost.

07/18/12 06:44:46 changed 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/


Add/Change #9574 (Reduce (or eliminate) errors when renaming a "tag".)




Change Properties
Action