mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
#421 HEX 색상코드 입력부분을 6자리에서 7자리로 변경(#이 포함될 경우를 위함)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3936 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
942871bc49
commit
883724b9c9
2 changed files with 10 additions and 9 deletions
|
|
@ -784,15 +784,16 @@ function doAddDocumentCart(obj) {
|
||||||
/* ff의 rgb(a,b,c)를 #... 로 변경 */
|
/* ff의 rgb(a,b,c)를 #... 로 변경 */
|
||||||
function transRGB2Hex(value) {
|
function transRGB2Hex(value) {
|
||||||
if(!value) return value;
|
if(!value) return value;
|
||||||
if(value.indexOf('#')>-1) return value.replace(/^#/,'');
|
if(value.indexOf('#') > -1) return value.replace(/^#/, '');
|
||||||
|
|
||||||
if(value.toLowerCase().indexOf('rgb')<0) return value;
|
if(value.toLowerCase().indexOf('rgb') < 0) return value;
|
||||||
value = value.replace(/^rgb\(/i,'').replace(/\)$/,'');
|
value = value.replace(/^rgb\(/i, '').replace(/\)$/, '');
|
||||||
value_list = value.split(',');
|
value_list = value.split(',');
|
||||||
|
|
||||||
var hex = '';
|
var hex = '';
|
||||||
for(var i=0;i<value_list.length;i++) {
|
for(var i = 0; i < value_list.length; i++) {
|
||||||
var color = parseInt(value_list[i],10).toString(16);
|
var color = parseInt(value_list[i], 10).toString(16);
|
||||||
|
if(color.length == 1) color = '0'+color;
|
||||||
hex += color;
|
hex += color;
|
||||||
}
|
}
|
||||||
return '#'+hex;
|
return '#'+hex;
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
<option value="solid">{$lang->cmd_widget_border_solid}</option>
|
<option value="solid">{$lang->cmd_widget_border_solid}</option>
|
||||||
<option value="dotted">{$lang->cmd_widget_border_dotted}</option>
|
<option value="dotted">{$lang->cmd_widget_border_dotted}</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="border_top_color" value="" class="color_input" maxlength="6"/>
|
<input type="text" name="border_top_color" value="" class="color_input" maxlength="7"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
<option value="solid">{$lang->cmd_widget_border_solid}</option>
|
<option value="solid">{$lang->cmd_widget_border_solid}</option>
|
||||||
<option value="dotted">{$lang->cmd_widget_border_dotted}</option>
|
<option value="dotted">{$lang->cmd_widget_border_dotted}</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="border_left_color" value="" class="color_input" maxlength="6"/>
|
<input type="text" name="border_left_color" value="" class="color_input" maxlength="7"/>
|
||||||
</td>
|
</td>
|
||||||
<td class="tRight">
|
<td class="tRight">
|
||||||
<input type="text" name="border_right_thick" value="" class="small_input" />px
|
<input type="text" name="border_right_thick" value="" class="small_input" />px
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
<option value="solid">{$lang->cmd_widget_border_solid}</option>
|
<option value="solid">{$lang->cmd_widget_border_solid}</option>
|
||||||
<option value="dotted">{$lang->cmd_widget_border_dotted}</option>
|
<option value="dotted">{$lang->cmd_widget_border_dotted}</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="border_right_color" value="" class="color_input" maxlength="6"/>
|
<input type="text" name="border_right_color" value="" class="color_input" maxlength="7"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
<option value="solid">{$lang->cmd_widget_border_solid}</option>
|
<option value="solid">{$lang->cmd_widget_border_solid}</option>
|
||||||
<option value="dotted">{$lang->cmd_widget_border_dotted}</option>
|
<option value="dotted">{$lang->cmd_widget_border_dotted}</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" name="border_bottom_color" value="" class="color_input" maxlength="6"/>
|
<input type="text" name="border_bottom_color" value="" class="color_input" maxlength="7"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue