commit 51fab9bf2999a51776a6866b4d5bdc3c41992c91 Author: Arturo Filastò hellais@gmail.com Date: Tue Apr 3 14:11:32 2012 -0700
Properly display the BadExit flag fixes #5559 --- img/flags/denied_16x16.png | Bin 0 -> 244 bytes js/models/relay.js | 9 +++++++-- js/views/details/main.js | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/img/flags/denied_16x16.png b/img/flags/denied_16x16.png new file mode 100644 index 0000000..4acbf6b Binary files /dev/null and b/img/flags/denied_16x16.png differ diff --git a/js/models/relay.js b/js/models/relay.js index 7d2d68e..21eb6c2 100644 --- a/js/models/relay.js +++ b/js/models/relay.js @@ -12,10 +12,16 @@ define([ parseflags: function(flags, size) { var output = []; var model = this; - _.each(flags, function(flag, model) { + _.each(flags, function(flag) { if (flag == "Authority") { output.push([flag,"award_stroke_"+size[2]]); } + if (flag == "BadExit") { + model.set({badexit: true}); + output.push([flag, "denied_"+size[0]]); + } else { + model.set({badexit: false}); + } if (flag == "Fast") { output.push([flag,"bolt_"+size[0]]); } @@ -46,7 +52,6 @@ define([ if (flag == "Exit") { output.push([flag,"cloud_download_"+size[0]]); } - }); return output; }, diff --git a/js/views/details/main.js b/js/views/details/main.js index 36b81d4..8c6b9b4 100644 --- a/js/views/details/main.js +++ b/js/views/details/main.js @@ -57,6 +57,8 @@ define([ grid: { hoverable: true, clickable: true }, xaxis: {mode: 'time', tickLength: 5}, }); + $("#"+g).resize(); +
$("#save_"+g).attr('href', Canvas2Image.saveAsPNG($("#"+g+" > canvas.base")[0], false));