People persist in calling Wine "WINE", fix the capitalisation silently in testdata.
This commit is contained in:
committed by
Chris Morgan
parent
041d0d2bc3
commit
0f9c35b832
@@ -930,7 +930,7 @@ class testData{
|
|||||||
echo '<a href="'.BASE.'/help/?sTopic=maintainer_ratings" target="_blank">Rating definitions</a></td></tr>',"\n";
|
echo '<a href="'.BASE.'/help/?sTopic=maintainer_ratings" target="_blank">Rating definitions</a></td></tr>',"\n";
|
||||||
// extra comments
|
// extra comments
|
||||||
echo '<tr valign=top><td class="color1"><b>Extra comments</b></td>',"\n";
|
echo '<tr valign=top><td class="color1"><b>Extra comments</b></td>',"\n";
|
||||||
echo '<td class="color0"><textarea name="sComments" rows=10 cols=65>';
|
echo '<td class="color0"><textarea name="sComments" id="extra_comments" rows=10 cols=65>';
|
||||||
echo $this->sComments.'</textarea></td></tr>',"\n";
|
echo $this->sComments.'</textarea></td></tr>',"\n";
|
||||||
|
|
||||||
echo '<input type="hidden" name="iVersionId" value="'.$this->iVersionId.'" >';
|
echo '<input type="hidden" name="iVersionId" value="'.$this->iVersionId.'" >';
|
||||||
|
|||||||
22
scripts.js
22
scripts.js
@@ -92,7 +92,29 @@ function showHint(o){
|
|||||||
$('hint').addClassName(ratingstyle[o.selectedIndex]);
|
$('hint').addClassName(ratingstyle[o.selectedIndex]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* too many people still call Wine "WINE" */
|
||||||
|
function bind_tolowerWINE()
|
||||||
|
{
|
||||||
|
[
|
||||||
|
$('app_editor'),
|
||||||
|
$('version_editor'),
|
||||||
|
$('Test1'),
|
||||||
|
$('Test2'),
|
||||||
|
$('Test3'),
|
||||||
|
$('extra_comments')].map( function(x)
|
||||||
|
{
|
||||||
|
if(x)
|
||||||
|
{
|
||||||
|
x.observe('change', tolowerWINE);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function tolowerWINE(o)
|
||||||
|
{
|
||||||
|
o.element().value = o.element().value.replace(/WINE([^A-Z]+)|(WINE)$/g,"Wine$1");
|
||||||
|
}
|
||||||
/* executed when document is ready */
|
/* executed when document is ready */
|
||||||
document.observe("dom:loaded", function() {
|
document.observe("dom:loaded", function() {
|
||||||
showHint($('ratingSelect'));
|
showHint($('ratingSelect'));
|
||||||
|
bind_tolowerWINE();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user