MediaWiki:Gadget-fa-bid-calculator.js: Difference between revisions
35+ wording, Use-this-salary button |
Lower-case years/points in the bid format |
||
| Line 241: | Line 241: | ||
// --- ready-to-paste post --- | // --- ready-to-paste post --- | ||
// "Suns offer Caldwell Jones 2 | // "Suns offer Caldwell Jones 2 years @ $500,000 = 3.5 points". | ||
// Whatever of team/player is missing simply drops out. | // Whatever of team/player is missing simply drops out. | ||
var tm = team.value.trim(), | var tm = team.value.trim(), | ||
pl = name.value.trim(), | pl = name.value.trim(), | ||
prefix = tm && pl ? tm + ' offer ' + pl : ( pl || ( tm ? tm + ' offer' : '' ) ), | prefix = tm && pl ? tm + ' offer ' + pl : ( pl || ( tm ? tm + ' offer' : '' ) ), | ||
offer = y + ( y === 1 ? ' | offer = y + ( y === 1 ? ' year' : ' years' ) + ' @ ' + money( s ) + | ||
' = ' + pts( total ) + ' | ' = ' + pts( total ) + ' points'; | ||
out.appendChild( postBlock( prefix ? prefix + ' ' + offer : offer ) ); | out.appendChild( postBlock( prefix ? prefix + ' ' + offer : offer ) ); | ||