[wp-meta] [Making WordPress.org] #186: "request" keyword is added multiple times
Making WordPress.org
noreply at wordpress.org
Fri Sep 6 21:40:22 UTC 2013
#186: "request" keyword is added multiple times
---------------------------+-------------------------------------
Reporter: SergeyBiryukov | Owner:
Type: defect | Status: new
Priority: normal | Component: make.wordpress.org / P2
Keywords: |
---------------------------+-------------------------------------
On the [http://make.wordpress.org/polyglots/ Polyglots blog], if you click
"request" several times in a row, the keyword is appended multiple times,
which looks weird (see the screenshot).
This is the click handler:
{{{
$('.p2-request-tag').click( function() {
var tags = $('#tags'), val = tags.val();
if ( val === 'Tag it' )
tags.val( 'request, ');
else
tags.val( 'request, ' + val );
});
}}}
I don't see it anywhere in the open sourced code, but this should fix it:
{{{
$('.p2-request-tag').click( function() {
var tags = $('#tags'), val = tags.val();
if ( val === 'Tag it' )
tags.val( 'request, ');
else if ( 'request,' != val.substr( 0, 8 ) )
tags.val( 'request, ' + val );
});
}}}
--
Ticket URL: <http://meta.trac.wordpress.org/ticket/186>
Making WordPress.org <http://meta.trac.wordpress.org/>
WordPress blogging software
More information about the wp-meta
mailing list