mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
issue 2385: Admin UI Refactoring - Advanced - Widgets
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11687 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5a450211ba
commit
9037c69430
5 changed files with 16 additions and 11 deletions
|
|
@ -160,6 +160,7 @@ $.fn.xeModalWindow = function(){
|
|||
var $this = $(this), $modal, $btnClose, disabled, before_event, duration;
|
||||
|
||||
$modal = $( $this.attr('href') );
|
||||
alert($this.attr('href'));
|
||||
if(!$modal.parent('body').length) {
|
||||
$btnClose = $('<button type="button" class="x_close">×</button>');
|
||||
$btnClose.click(function(){ $modal.data('anchor').trigger('close.mw') });
|
||||
|
|
@ -966,14 +967,14 @@ $('.filebox')
|
|||
}else{
|
||||
var $displayInput = $('<input type="text" id="lang_' + id + '" class="displayInput" style="width:179px">').data('lang-id', id);
|
||||
}
|
||||
var $remover = $('<button type="button" class="x_add-on remover" title="Remove Multilingual Text"><i class="x_icon-remove"></i> Remove Multilingual Text</button>').data('lang-target', id);
|
||||
var $setter = $('<a href="#g11n" class="x_add-on modalAnchor" title="Set Multilungual Text"><i class="x_icon-globe"></i> Set Multilingual Text</a>').data('lang-target', id);
|
||||
var $remover = $('<button type="button" class="x_add-on remover" title="' + xe.cmd_remove_multilingual_text + '"><i class="x_icon-remove"></i>' + xe.cmd_remove_multilingual_text + '</button>').data('lang-target', id);
|
||||
var $setter = $('<a href="#g11n" class="x_add-on modalAnchor" title="' + xe.cmd_set_multilingual_text + '"><i class="x_icon-globe"></i>' + xe.cmd_set_multilingual_text + '</a>').data('lang-target', id);
|
||||
|
||||
$this.parent().addClass('g11n').addClass('x_input-append');
|
||||
$this.after($displayInput, $remover, $setter);
|
||||
$this.parent().find('.vLang').remove();
|
||||
$this.hide();
|
||||
$setter.xeModalWindow();
|
||||
$setter.attr('href', '#g11n').xeModalWindow();
|
||||
|
||||
// text change
|
||||
var $hiddenInput = $this;
|
||||
|
|
|
|||
|
|
@ -1083,4 +1083,12 @@ Le module [Administration des Modules] montera tous les modules installés et vo
|
|||
<value xml:lang="ko"><![CDATA[다국어를 입력해 주세요.]]></value>
|
||||
<value xml:lang="en"><![CDATA[Please enter value for multilingual.]]></value>
|
||||
</item>
|
||||
<item name="cmd_set_multilingual_text">
|
||||
<value xml:lang="ko"><![CDATA[다국어 텍스트 설정]]></value>
|
||||
<value xml:lang="en"><![CDATA[Set multilingual text]]></value>
|
||||
</item>
|
||||
<item name="cmd_remove_multilingual_text">
|
||||
<value xml:lang="ko"><![CDATA[다국어 텍스트 해제]]></value>
|
||||
<value xml:lang="en"><![CDATA[Remove multilingual text]]></value>
|
||||
</item>
|
||||
</lang>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
<div class="x_clearfix">
|
||||
<button type="reset" class="x_btn cancel">{$lang->cmd_cancel}</button>
|
||||
<span class="x_pull-right">
|
||||
<button type="submit" class="x_btn x_btn-primary save-useit">{$lang->cmd_save_and_use_it}</button>
|
||||
<button type="submit" class="x_btn x_btn-primary save-useit">{$lang->use_after_save}</button>
|
||||
<span>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
|
@ -45,4 +45,6 @@
|
|||
<script>
|
||||
xe.msg_confirm_save_and_use_multilingual = '{$lang->msg_confirm_save_and_use_multilingual}';
|
||||
xe.msg_empty_multilingual = '{$lang->msg_empty_multilingual}';
|
||||
xe.cmd_set_multilingual_text = '{$lang->cmd_set_multilingual_text}';
|
||||
xe.cmd_remove_multilingual_text = '{$lang->cmd_remove_multilingual_text}';
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
</span>
|
||||
<span class="x_pull-right">
|
||||
<button type="button" class="x_btn useit x_btn-primary">{$lang->use}</button>
|
||||
<button type="submit" class="x_btn save x_btn-primary">{$lang->cmd_save_and_use_it}</button>
|
||||
<button type="submit" class="x_btn save x_btn-primary">{$lang->use_after_save}</button>
|
||||
</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
|
|
|||
|
|
@ -44,16 +44,10 @@
|
|||
<div class="x_controls">
|
||||
<div cond="$var->type == 'text'">
|
||||
<input type="text" name="{$id}" class="lang_code" />
|
||||
<script>
|
||||
xe.registerApp(new xe.MultiLangManager('{$id}'));
|
||||
</script>
|
||||
</div>
|
||||
<input cond="$var->type == 'color'" type="text" name="{$id}" value="" id="{$id}" class="color-indicator" style="width:178px" />
|
||||
<div cond="$var->type == 'textarea'">
|
||||
<textarea cond="$var->type == 'textarea'" name="{$id}" id="{$id}" class="lang_code" rows="8" cols="42"></textarea>
|
||||
<script>
|
||||
xe.registerApp(new xe.MultiLangManager('{$id}'));
|
||||
</script>
|
||||
</div>
|
||||
<select cond="$var->type == 'select'" name="{$id}" id="{$id}" style="width:220px">
|
||||
<option loop="$var->options => $key, $val" value="{$key}">{$val}</option>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue