Correcting title attr. of display_link #2075

merged 1 commit into from Mar 29, 2016


None yet

2 participants

BstName commented Mar 29, 2016

Fixes a minor glitch in edit_link_save in insert.js:

Problem / How to reproduce:

After edition of an URL's title, the title attribute of the display title (as visible on hovering the display title) is replaced by the (untrimmed) long URL. This is unexpected/inconsistent behavior [behaviour] since in contrast, for an existing unedited URL title, the respective title attribute is simply the (untrimmed) title itself (see the line 'title_attr' => yourls_esc_attr( $title ), in yourls_table_add_row in functions-html.php: cf.

Plugging in data.url.title as (untrimmed) title attribute (instead of plugging in data.url.url) when setting the variable display_link.

@BstName BstName Correcting title attr. of display_link
Correction in `edit_link_save`:
Plugging in `data.url.title` as (untrimmed) `title` attribute (instead of plugging in `data.url.url`) when setting the variable `display_link`.

Indeed. Thanks!

@LeoColomb LeoColomb merged commit 85b06de into YOURLS:master Mar 29, 2016

2 checks passed

Scrutinizer No new issues
continuous-integration/travis-ci/pr The Travis CI build passed
@BstName BstName deleted the BstName:fix branch Mar 29, 2016
BstName commented Mar 29, 2016

You are welcome, thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment