changeset 1065:897f0560af46

do a proper reset for rgbm/rgba
author hertzhaft
date Mon, 02 Apr 2012 00:00:47 +0200
parents f712768489fc
children 555f6f0d6be5
files webapp/src/main/webapp/jquery/jquery.digilib.sliders.js
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.sliders.js	Sun Apr 01 23:49:23 2012 +0200
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.sliders.js	Mon Apr 02 00:00:47 2012 +0200
@@ -176,8 +176,7 @@
 
     // set m/a start values for sliders
     var setStartValues = function (data, code) {
-        var colorparts = data.settings['rgb'+code];
-        if (colorparts == null) return;
+        var colorparts = data.settings['rgb'+code] || '0/0/0';
         var values = colorparts.split("/");
         rgb.r[code] = values[0] || 0;
         rgb.g[code] = values[1] || 0;