jpicker-1.1.6.js UI bugfix.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12349 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-12-06 02:29:57 +00:00
parent 0a5002a8a9
commit 13b41ec199
2 changed files with 2 additions and 2 deletions

View file

@ -1680,7 +1680,7 @@
if (win.expandable)
{
container.html(controlHtml);
if($(document.body).children('div.jPicker.Container').length==0)$(document.body).prepend(container);
if($(document.body).children('div.jPicker.Container').length==0)$(document.body).append(container);
else $(document.body).children('div.jPicker.Container:last').after(container);
container.mousedown(
function()

View file

@ -51,7 +51,7 @@ w.clientPath+w.colorBar.arrow.file+'" class="Arrow"/></div></td><td colspan="2"
A.tooltips.red.radio+'"><input type="radio" value="r"'+("r"==h.color.mode?' checked="checked"':"")+'/>R:</label></td><td class="Text"><input type="text" maxlength="3" value="'+(null!=p?p.r:"")+'" title="'+A.tooltips.red.textbox+'"/></td></tr><tr class="Green"><td class="Radio"><label title="'+A.tooltips.green.radio+'"><input type="radio" value="g"'+("g"==h.color.mode?' checked="checked"':"")+'/>G:</label></td><td class="Text"><input type="text" maxlength="3" value="'+(null!=p?p.g:"")+'" title="'+
A.tooltips.green.textbox+'"/></td></tr><tr class="Blue"><td class="Radio"><label title="'+A.tooltips.blue.radio+'"><input type="radio" value="b"'+("b"==h.color.mode?' checked="checked"':"")+'/>B:</label></td><td class="Text"><input type="text" maxlength="3" value="'+(null!=p?p.b:"")+'" title="'+A.tooltips.blue.textbox+'"/></td></tr><tr class="Alpha"><td class="Radio">'+(a.alphaSupport?'<label title="'+A.tooltips.alpha.radio+'"><input type="radio" value="a"'+("a"==h.color.mode?' checked="checked"':
"")+"/>A:</label>":"&nbsp;")+'</td><td class="Text">'+(a.alphaSupport?'<input type="text" maxlength="'+(3+a.alphaPrecision)+'" value="'+(null!=p?Math.precision(100*p.a/255,a.alphaPrecision):"")+'" title="'+A.tooltips.alpha.textbox+'"/>&nbsp;%':"&nbsp;")+'</td></tr><tr class="Hex"><td colspan="2" class="Text"><label title="'+A.tooltips.hex.textbox+'">#:<input type="text" maxlength="6" class="Hex" value="'+(null!=p?p.hex:"")+'"/></label>'+(a.alphaSupport?'<input type="text" maxlength="2" class="AHex" value="'+
(null!=p?p.ahex.substring(6):"")+'" title="'+A.tooltips.hex.alpha+'"/></td>':"&nbsp;")+"</tr></tbody></table>";a.expandable?(f.html(y),0==j(document.body).children("div.jPicker.Container").length?j(document.body).prepend(f):j(document.body).children("div.jPicker.Container:last").after(f),f.mousedown(function(){j(document.body).children("div.jPicker.Container").css({zIndex:2E3});f.css({zIndex:2E3})}),f.css({left:"left"==a.position.x?d.offset().left-530-("center"==a.position.y?25:0)+"px":"center"==
(null!=p?p.ahex.substring(6):"")+'" title="'+A.tooltips.hex.alpha+'"/></td>':"&nbsp;")+"</tr></tbody></table>";a.expandable?(f.html(y),0==j(document.body).children("div.jPicker.Container").length?j(document.body).append(f):j(document.body).children("div.jPicker.Container:last").after(f),f.mousedown(function(){j(document.body).children("div.jPicker.Container").css({zIndex:2E3});f.css({zIndex:2E3})}),f.css({left:"left"==a.position.x?d.offset().left-530-("center"==a.position.y?25:0)+"px":"center"==
a.position.x?d.offset().left-260+"px":"right"==a.position.x?d.offset().left-10+("center"==a.position.y?25:0)+"px":"screenCenter"==a.position.x?(j(document).width()>>1)-260+"px":d.offset().left+parseInt(a.position.x)+"px",position:"absolute",top:"top"==a.position.y?0<d.offset().top-312?d.offset().top-312:"50px":"center"==a.position.y?d.offset().top-156+"px":"bottom"==a.position.y?d.offset().top+25+"px":d.offset().top+parseInt(a.position.y)+"px"})):(f=j(c),f.html(y));y=f.find("tbody:first");m=y.find("div.Map:first");
q=y.find("div.Bar:first");var z=m.find("span"),E=q.find("span");n=z.filter(".Map1:first");l=z.filter(".Map2:first");t=z.filter(".Map3:first");r=E.filter(".Map1:first");u=E.filter(".Map2:first");e=E.filter(".Map3:first");D=E.filter(".Map4:first");B=E.filter(".Map5:first");v=E.filter(".Map6:first");g=new X(m,{map:{width:w.colorMap.width,height:w.colorMap.height},arrow:{image:w.clientPath+w.colorMap.arrow.file,width:w.colorMap.arrow.width,height:w.colorMap.arrow.height}});g.bind(ra);k=new X(q,{map:{width:w.colorBar.width,
height:w.colorBar.height},arrow:{image:w.clientPath+w.colorBar.arrow.file,width:w.colorBar.arrow.width,height:w.colorBar.arrow.height}});k.bind(sa);C=new ma(y,x.active,a.expandable&&a.bindToInput?a.input:null,a.alphaPrecision);var z=null!=p?p.hex:null,H=y.find(".Preview"),E=y.find(".Button");M=H.find(".Active:first").css({backgroundColor:z&&"#"+z||"transparent"});K=H.find(".Current:first").css({backgroundColor:z&&"#"+z||"transparent"}).bind("click",ea);s.call(c,K,Math.precision(100*x.current.val("a"))/