Permalink
Browse files

selected file background color tweak

  • Loading branch information...
1 parent 8467d35 commit cc24e9b9cbbd60a05c29a8911e5d73ac3f799358 @JonJagger JonJagger committed Dec 29, 2011
Showing with 11 additions and 2 deletions.
  1. +7 −1 public/javascripts/cyberdojo-file_load_save.js
  2. +4 −1 public/stylesheets/cyber_dojo.css
@@ -44,7 +44,13 @@ var cyberDojo = (function($cd, $j) {
// could contain characters that aren't strictly legal
// characters in a dom node id
// 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);
var file_op_rename = $j('#file_op_rename');
@@ -150,7 +150,7 @@ div[class~="filename"]:after { content: "\00a0"; }
#editor, #output, #diff_sheet
{
- background: Ivory;
+ background: CornSilk; /*Ivory;*/
color: Black;
width: 45em;
}
@@ -355,3 +355,6 @@ body { background: #FFECCB; }
#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.