mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +09:00
fixed a initial width of multilingual input
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11952 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a7849f9d13
commit
3657828447
2 changed files with 13 additions and 10 deletions
|
|
@ -1560,13 +1560,16 @@ jQuery(function($){
|
|||
|
||||
// Remover click
|
||||
$remover.click(function(){
|
||||
var $this = $(this);
|
||||
var $g11n_set_input = $('#lang_' + $this.data('lang-target'));
|
||||
var width = $g11n_set_input.width();
|
||||
$g11n_set_input.val('').removeAttr('disabled')
|
||||
.width(width + 44)
|
||||
.parent('.g11n').removeClass('active');
|
||||
$this.siblings('.lang_code').val('');
|
||||
var $this = $(this);
|
||||
|
||||
if(!$this.closest('.g11n').hasClass('active')) return;
|
||||
|
||||
var $g11n_set_input = $('#lang_' + $this.data('lang-target'));
|
||||
var width = $g11n_set_input.width();
|
||||
$g11n_set_input.val('').removeAttr('disabled')
|
||||
.width(width + 44)
|
||||
.parent('.g11n').removeClass('active');
|
||||
$this.siblings('.lang_code').val('');
|
||||
});
|
||||
|
||||
// if change text, copy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue