issue 160 bug fix in extra vars

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9202 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-09-19 10:17:53 +00:00
parent 5a642be9c1
commit b2b1930c6e
8 changed files with 29 additions and 10 deletions

View file

@ -44,3 +44,12 @@ $('#langList')
})
});
function doInsertLangCode(langCode, target)
{
if(window.opener && target) {
var obj = window.opener.get_by_id(target);
if(obj) obj.value = '$user_lang->'+langCode;
}
window.close();
}

View file

@ -11,7 +11,7 @@
<ul id="langList">
<li loop="$lang_code_list=>$key,$value">
{@$langName = $value->name}
<strong>{$value->value}</strong> <button type="button" class="side text _edit">{$lang->cmd_edit}</button>
<strong>{$value->value}</strong> <span class="side"><button type="button" class="text" cond="$module != 'admin'" onclick="doInsertLangCode('{$value->name}', '{$target}')">{$lang->cmd_apply}</button><button type="button" class="text _edit">{$lang->cmd_edit}</button></span>
<form action="./" method="post" id="langForm_{$langName}" >
<input type="hidden" name="act" value="procModuleAdminInsertLang" />
<input type="hidden" name="lang_name" value="{$langName}" />