Skip to content

Commit

Permalink
selected file background color tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Dec 29, 2011
1 parent 8467d35 commit cc24e9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion public/javascripts/cyberdojo-file_load_save.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ var cyberDojo = (function($cd, $j) {
// could contain characters that aren't strictly legal // could contain characters that aren't strictly legal
// characters in a dom node id // characters in a dom node id
// NB: This fails if the filename contains a double quote // NB: This fails if the filename contains a double quote
$j('[id="radio_' + filename + '"]').attr('checked', 'checked');
$j('input[name="filename"]').each(function() {
$j(this).parent().attr('current_file', 'false');
});
var selected = $j('[id="radio_' + filename + '"]');
selected.attr('checked', 'checked');
selected.parent().attr('current_file', 'true');
$j('#current_filename').attr('value', filename); $j('#current_filename').attr('value', filename);


var file_op_rename = $j('#file_op_rename'); var file_op_rename = $j('#file_op_rename');
Expand Down
5 changes: 4 additions & 1 deletion public/stylesheets/cyber_dojo.css
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ div[class~="filename"]:after { content: "\00a0"; }


#editor, #output, #diff_sheet #editor, #output, #diff_sheet
{ {
background: Ivory; background: CornSilk; /*Ivory;*/
color: Black; color: Black;
width: 45em; width: 45em;
} }
Expand Down Expand Up @@ -355,3 +355,6 @@ body { background: #FFECCB; }


#editor, #output, #diff_sheet { color: #383838; } #editor, #output, #diff_sheet { color: #383838; }


div[current_file="false"] { background: #96D7E4; }
div[current_file="true"] { background: CornSilk; }

0 comments on commit cc24e9b

Please sign in to comment.