Permalink
Browse files

Move line preview reset logic into GradientScanner.resetLinePreview. …

…Update the embedded image to be a transparent gif rather than white.
  • Loading branch information...
1 parent 2188bbf commit 97e61bddd236019fb62721f4f6d0b087f13b4e19 @kpdecker committed Feb 19, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 gradient-scanner.js
View
@@ -10,8 +10,11 @@ var GradientScanner = {};
$(document).ready(function() {
var linePreview = $(".line-preview");
- // Provide a 1px transparent image for the preview images
- linePreview.attr("src", "data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=");
+ GradientScanner.resetLinePreview = function() {
+ // Provide a 1px transparent image for the preview images
+ linePreview.attr("src", "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");
+ };
+ GradientScanner.resetLinePreview();
var line, relLine, gradientType = "linear";

0 comments on commit 97e61bd

Please sign in to comment.