mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +09:00
페이지 모듈에서 위젯의 외곽선과 float 조절 가능하도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2964 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cef71a6aab
commit
29853571a3
13 changed files with 188 additions and 31 deletions
|
|
@ -766,6 +766,23 @@ function doAddDocumentCart(obj) {
|
|||
exec_xml("document","procDocumentAdminAddCart", params, null);
|
||||
}
|
||||
|
||||
// ff의 rgb(a,b,c)를 #... 로 변경
|
||||
function transRGB2Hex(value) {
|
||||
if(!value) return value;
|
||||
if(value.indexOf('#')>-1) return value.replace(/^#/,'');
|
||||
|
||||
if(value.toLowerCase().indexOf('rgb')<0) return value;
|
||||
value = value.replace(/^rgb\(/i,'').replace(/\)$/,'');
|
||||
value_list = value.split(',');
|
||||
|
||||
var hex = '';
|
||||
for(var i=0;i<value_list.length;i++) {
|
||||
var color = parseInt(value_list[i],10).toString(16);
|
||||
hex += color;
|
||||
}
|
||||
return hex;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Base64 encode / decode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue