Skip to content

Commit

Permalink
Fixes #718 (file browser OK button fiasco)
Browse files Browse the repository at this point in the history
  • Loading branch information
Goran Topic committed Feb 16, 2012
1 parent 6232709 commit b68b07c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/visualizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,12 @@ var Visualizer = (function($, window, undefined) {
// 'focus' : set by URL
// (see setMarked() invocations below)

data.markedSent = [];
data.markedSent = {};
markedText = [];
var setMarked = function(markedType) {
$.each(args[markedType] || [], function(markedNo, marked) {
if (marked[0] == 'sent') {
data.markedSent.push(parseInt(marked[1], 10));
data.markedSent[marked[1]] = true;
} else if (marked[0] == 'equiv') { // [equiv, Equiv, T1]
$.each(data.equivs, function(equivNo, equiv) {
if (equiv[1] == marked[1]) {
Expand Down Expand Up @@ -1818,7 +1818,7 @@ Util.profileStart('rows');
}
rowBox.height += rowPadding;
var bgClass;
if ($.inArray(currentSent, data.markedSent) != -1) {
if (data.markedSent[currentSent]) {
// specifically highlighted
bgClass = 'backgroundHighlight';
} else if (Configuration.textBackgrounds == "striped") {
Expand Down
1 change: 1 addition & 0 deletions client/src/visualizer_ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ var VisualizerUI = (function($, window, undefined) {
val().
replace(/\/?\s+$/, '').
replace(/^\s+/, '');
if (!input.length) return false;
if (input.substr(0, 2) === '..') {
// ..
var pos = coll.substr(0, coll.length - 1).lastIndexOf('/');
Expand Down

0 comments on commit b68b07c

Please sign in to comment.