Mercurial > hg > digilib-old
diff webapp/src/main/webapp/jquery/jquery.digilib.sliders.js @ 1060:d9abeaa44c49
better region info
author | hertzhaft |
---|---|
date | Sat, 31 Mar 2012 19:56:53 +0200 |
parents | c7fd2f239953 |
children | 4f5c5c578aa4 |
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.sliders.js Sat Mar 31 15:27:20 2012 +0200 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.sliders.js Sat Mar 31 19:56:53 2012 +0200 @@ -282,12 +282,12 @@ $('<td class="'+css+'rgb"/>').append($cont).appendTo($tr); } $.each(primaryColors, setupTableRow); - var greyValues = function (index) { + var setGreyValue = function (index) { var val = index * 32; $(this).css('background-color', 'rgb('+val+','+val+','+val+')'); }; - $div.find('div.'+cls+'grey span').each(greyValues); - $div.find('div.'+cls+'indicator span').each(greyValues); + $div.find('div.'+cls+'grey span').each(setGreyValue); + $div.find('div.'+cls+'indicator span').each(setGreyValue); var getValues = function () { // get values from sliders var input = $table.data();