mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 20:29:57 +09:00
Issue 2445 : Problem with the enter key is fixed. The first problem mentioned in the issue description is due to the missing 'xe.current_lang' javascript varible declaration in the setup page. The declaration clause needs to be embeded in the page with PHP.
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11189 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e03e365ff0
commit
db5f54f6bb
2 changed files with 38 additions and 32 deletions
|
|
@ -942,10 +942,10 @@ $('.multiLangEdit')
|
|||
function on_complete(data, idx){
|
||||
var results = data.results, $btn, i, c;
|
||||
|
||||
if(data.error || !results || (r_idx != idx+1)) return;
|
||||
|
||||
$this.removeClass('loading');
|
||||
|
||||
if(data.error || !results || results.length === 0 || (r_idx != idx+1)) return;
|
||||
|
||||
$ul.empty();
|
||||
for(i=0,c=results.length; i < c; i++) {
|
||||
$btn = $('<button type="button" class="_btnLang" />').data('langkey', results[i].name).text(results[i].value);
|
||||
|
|
@ -972,6 +972,8 @@ $('.multiLangEdit')
|
|||
$active = $ul.find('button.active');
|
||||
|
||||
if(key == ENTER) {
|
||||
if($active.length === 0) return true;
|
||||
|
||||
$active.click();
|
||||
return false;
|
||||
}
|
||||
|
|
@ -1230,6 +1232,9 @@ function initLayer($layer) {
|
|||
var name = $layer.data('multilang-current-name');
|
||||
|
||||
function use_lang() {
|
||||
console.log($layer);
|
||||
console.log(xe.current_lang);
|
||||
console.log($layer.find('.langInput li.'+xe.current_lang));
|
||||
$layer.hide().closest('.multiLangEdit').find('.vLang')
|
||||
.eq(0).val('$user_lang->'+name).end()
|
||||
.eq(1).val($layer.find('.langInput li.'+xe.current_lang).find('>input:text,>textarea').val()).end();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue