code review

This commit is contained in:
gorhill 2015-04-06 12:22:41 -04:00
parent d098a9fb3d
commit 9cc670b018

View file

@ -89,12 +89,12 @@ var proceedPermanent = function() {
proceed.descendants('span:nth-of-type(4)').text(matches[2]); proceed.descendants('span:nth-of-type(4)').text(matches[2]);
if ( details.hn === details.dn ) { if ( details.hn === details.dn ) {
proceed.descendants('.hn').text(details.hn);
proceed.descendants('span:nth-of-type(2)').remove(); proceed.descendants('span:nth-of-type(2)').remove();
proceed.descendants('.hn').text(details.hn);
} else { } else {
proceed.descendants('span:nth-of-type(3)').remove();
proceed.descendants('.hn').text(details.hn).attr('value', details.hn); proceed.descendants('.hn').text(details.hn).attr('value', details.hn);
proceed.descendants('.dn').text(details.dn).attr('value', details.dn); proceed.descendants('.dn').text(details.dn).attr('value', details.dn);
proceed.descendants('span:nth-of-type(3)').remove();
} }
uDom('#proceed').append(proceed); uDom('#proceed').append(proceed);