Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add github.com.js - should show specs/app files first on diff view

  • Loading branch information...
commit 02e9b59a2c46066b3b31c630a173107bbc3909a8 1 parent 2d7921b
@jumski authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 dotjs/github.com.js
View
20 dotjs/github.com.js
@@ -0,0 +1,20 @@
+
+if ($('.page-pullrequest').length) {
+ $('.diff-view .file').each(function(){
+ path = $(this).find('.meta').data('path');
+
+ should_move = path.match(/^(app|lib|spec)\//);
+
+ if (should_move)
+ $(this).prependTo($(this).parent());
+ });
+
+ $('#toc tr').each(function(){
+ path = $(this).find('.path a').text();
+
+ should_move = path.match(/^(app|lib|spec)\//);
+
+ if (should_move)
+ $(this).prependTo($(this).parent());
+ });
+}
Please sign in to comment.
Something went wrong with that request. Please try again.