class 명을 기존 jPicker 와 달리 써서 충돌 회피

혹시 한 페이지에 함께 불러오더라도 충돌을 회피함.
This commit is contained in:
MinSoo Kim 2016-02-06 18:46:02 +09:00
parent 3288d504d2
commit f9987347a5
12 changed files with 26 additions and 25 deletions

View file

@ -669,7 +669,7 @@ function doShowWidgetSizeSetup(px, py, obj) {
if(el) {
$el.val(val);
if($el.hasClass('color-indicator')) {
if($el.hasClass('color-indicator') || $el.hasClass('rx-spectrum')) {
if(val != 'transparent') {
val = val.toUpperCase();
$el.css('background', '#' + val);

View file

@ -49,7 +49,7 @@
<input type="text" name="{$id}" />
</block>
<block cond="$var->type == 'color'">
<input type="color" name="{$id}" value="" id="{$id}" class="color-indicator" style="width:178px" />
<input type="color" name="{$id}" value="" id="{$id}" class="rx-spectrum" style="width:178px" />
</block>
<block cond="$var->type == 'textarea'">
<textarea cond="$var->type == 'textarea'" name="{$id}" id="{$id}" rows="8" cols="42"></textarea>

View file

@ -62,7 +62,7 @@
<option value="solid">{$lang->cmd_widget_border_solid}</option>
<option value="dotted">{$lang->cmd_widget_border_dotted}</option>
</select>
<input type="color" name="border_top_color" value="" class="color_input color-indicator" maxlength="7"/>
<input type="color" name="border_top_color" value="" class="color_input rx-spectrum" maxlength="7"/>
</td>
</tr>
<tr>
@ -72,7 +72,7 @@
<option value="solid">{$lang->cmd_widget_border_solid}</option>
<option value="dotted">{$lang->cmd_widget_border_dotted}</option>
</select>
<input type="color" name="border_left_color" value="" class="color_input color-indicator" maxlength="7"/>
<input type="color" name="border_left_color" value="" class="color_input rx-spectrum" maxlength="7"/>
</td>
<td style="text-align:right">
<input type="number" name="border_right_thick" value="" class="small_input" /> px
@ -80,7 +80,7 @@
<option value="solid">{$lang->cmd_widget_border_solid}</option>
<option value="dotted">{$lang->cmd_widget_border_dotted}</option>
</select>
<input type="color" name="border_right_color" value="" class="color_input color-indicator" maxlength="7"/>
<input type="color" name="border_right_color" value="" class="color_input rx-spectrum" maxlength="7"/>
</td>
</tr>
<tr>
@ -90,12 +90,12 @@
<option value="solid">{$lang->cmd_widget_border_solid}</option>
<option value="dotted">{$lang->cmd_widget_border_dotted}</option>
</select>
<input type="color" name="border_bottom_color" value="" class="color_input color-indicator" maxlength="7"/>
<input type="color" name="border_bottom_color" value="" class="color_input rx-spectrum" maxlength="7"/>
</td>
</tr>
<tr>
<th>{$lang->cmd_widget_background_color}</th>
<td colspan="2"><input type="color" name="background_color" value="" class="input color-indicator" /></td>
<td colspan="2"><input type="color" name="background_color" value="" class="input rx-spectrum" /></td>
</tr>
<tr>
<th>{$lang->cmd_widget_background_image_url}</th>

View file

@ -72,7 +72,7 @@
<input type="text" name="{$id}" value="" class="lang_code" />
</div>
<input cond="$var->type == 'color'" type="color" name="{$id}" class="color-indicator" />
<input cond="$var->type == 'color'" type="color" name="{$id}" class="rx-spectrum" />
<div cond="$var->type == 'textarea'">
<textarea name="{$id}" rows="8" cols="42" class="lang_code"></textarea>