Skip to content

Commit

Permalink
Fixed a problem where the Next Step button wouldn't be disabled when …
Browse files Browse the repository at this point in the history
…there was an error.
  • Loading branch information
kmark committed May 21, 2010
1 parent 6f50050 commit 58058b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/tpl/install/install.tpl
Expand Up @@ -161,7 +161,7 @@ $(window).load(function () {
</tr>
<tr>
<td colspan="3" align="center"><label>
<input type="button" name="2" id="2" value="Next Step" onclick="change()" />
<input type="button" name="2" id="2" class="twobutton" value="Next Step" onclick="change()" />
</label></td>
</tr>
</table>
Expand Down
4 changes: 2 additions & 2 deletions install/index.php
Expand Up @@ -51,7 +51,7 @@ function writeconfig($host, $user, $pass, $db, $pre, $true) {

define("NAME", "THT");
define("PAGE", "Install");
define("SUB", "Enter Details");
define("SUB", "Choose Method");

$array['VERSION'] = NVER;
$array['ANYTHING'] = "";
Expand All @@ -77,7 +77,7 @@ function writeconfig($host, $user, $pass, $db, $pre, $true) {
}
echo $style->get("header.tpl");
if($disable) {
echo '<script type="text/javascript">$(function(){$("#two").attr("disabled", "true");$("#method").attr("disabled", "true");});</script>';
echo '<script type="text/javascript">$(function(){$(".twobutton").attr("disabled", "true");$("#method").attr("disabled", "true");});</script>';
}
echo $style->replaceVar("tpl/install/install.tpl", $array);
echo $style->get("footer.tpl");
Expand Down

0 comments on commit 58058b0

Please sign in to comment.