Commit 9bef8f36e6dd8cb9d216a527693c26bd4fb8672b

Authored by Nathan Broadbent
1 parent e8cd0515
Exists in master and in 1 other branch production

Added image preloading for issue tracker icons, since it looks bad when icons ta…

…ke a while to load after you click them.
app/views/apps/_issue_tracker_fields.html.haml
@@ -74,3 +74,8 @@ @@ -74,3 +74,8 @@
74 = w.label :password, 'Password' 74 = w.label :password, 'Password'
75 = w.password_field :password, :placeholder => 'Password for your account' 75 = w.password_field :password, :placeholder => 'Password for your account'
76 76
  77 + .image_preloader
  78 + - %w(none github lighthouseapp redmine pivotal fogbugz mingle).each do |tracker|
  79 + = image_tag "#{tracker}_inactive.png"
  80 + = image_tag "#{tracker}_create.png"
  81 +
public/stylesheets/application.css
@@ -554,7 +554,6 @@ div.issue_tracker.nested label.r_on { @@ -554,7 +554,6 @@ div.issue_tracker.nested label.r_on {
554 color: #191919; 554 color: #191919;
555 } 555 }
556 556
557 -  
558 /* Inactive icons */ 557 /* Inactive icons */
559 div.issue_tracker.nested label.none { background: url(/images/none_inactive.png) no-repeat; } 558 div.issue_tracker.nested label.none { background: url(/images/none_inactive.png) no-repeat; }
560 div.issue_tracker.nested label.redmine { background: url(/images/redmine_inactive.png) no-repeat; } 559 div.issue_tracker.nested label.redmine { background: url(/images/redmine_inactive.png) no-repeat; }
@@ -572,6 +571,9 @@ div.issue_tracker.nested label.r_on.fogbugz { background: url(/images/fogbugz_cr @@ -572,6 +571,9 @@ div.issue_tracker.nested label.r_on.fogbugz { background: url(/images/fogbugz_cr
572 div.issue_tracker.nested label.r_on.pivotal { background: url(/images/pivotal_create.png) no-repeat; } 571 div.issue_tracker.nested label.r_on.pivotal { background: url(/images/pivotal_create.png) no-repeat; }
573 div.issue_tracker.nested label.r_on.github { background: url(/images/github_create.png) no-repeat; } 572 div.issue_tracker.nested label.r_on.github { background: url(/images/github_create.png) no-repeat; }
574 573
  574 +/* Icons need to be preloaded, otherwise it looks bad */
  575 +.image_preloader { display: none; }
  576 +
575 /* Apps Table */ 577 /* Apps Table */
576 table.apps tbody tr:hover td ,table.errs tbody tr:hover td { background-color: #F2F2F2;} 578 table.apps tbody tr:hover td ,table.errs tbody tr:hover td { background-color: #F2F2F2;}
577 579