Page MenuHomePhabricator

Extension:Collection should copy the book title automatically to the stored "book page" input field
Closed, ResolvedPublic

Description

When I save a book collection, whether it is new or an updated version, I wish to have the book title automatically copied as proposed Wiki page name (for storing the book, which I call stored "book page", or "book storage page").

Using Javascript, or jQuery, this can in my view easily accomplished.


Version: unspecified
Severity: enhancement

Details

Reference
bz29236

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:36 PM
bzimport set Reference to bz29236.

Couldn't help myself noting here,

jQuery and javascript are not on the same level. jQuery is a collection of javascript functions to simplify many things. They are not separate, "writing jQuery" is a weird way of saying "writing javascript and calling jQuery functions".

More on topic though,

Yes, this should be simple to implement.

Krinkle

[0] http://en.wikipedia.org/wiki/JQuery

Adding easy keyword, per Krinkle's comment.

PS: this feature was also requested on [[mw:Extension:Collection/Wishlist#Modifying_an_existing_book]]

(In reply to comment #2)

Adding easy keyword, per Krinkle's comment.

PS: this feature was also requested on
[[mw:Extension:Collection/Wishlist#Modifying_an_existing_book]]

thanks, I added the bug number there

johnnorro wrote:

Collection.template.php patch

Here is a quick patch to get it working, is this suitable?

Attached:

sumanah wrote:

Thanks for the patch! Marking it "patch" and "need-review" as a signal that this patch awaits review by developers.

(In reply to comment #4)

Here is a quick patch to get it working, is this suitable?

We don't usually put javascript in-line like that. I took your hint, though, and applied it in r107951 in what I think will be a more suitable form. Thanks for your help!

Is there somewhere a reference (test) implementation to see this working ?