Skip to content

Commit

Permalink
Change icon in the compile button when compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
pauek committed Mar 31, 2011
1 parent 9d3b7ab commit 7d9f5a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ function showErrors(errs) {
if (errs.length == 0) {
$("#errors").css({ height: 0 });
$("#runButton").button("enable");
$("#compileButton")
.button("disable")
.button({ icons: { primary: 'ui-icon-check' } });
} else {
$("#errors").css({ height: "30%" });
$("#runButton").button("disable");
Expand Down Expand Up @@ -78,6 +81,9 @@ function sessionStart(_session) {
}

function sourceCodeChanged() {
$("#compileButton")
.button("enable")
.button({ icons: { primary: 'ui-icon-gear' } });
$("#runButton").button("disable");
}

Expand Down

0 comments on commit 7d9f5a1

Please sign in to comment.