fixed locale bug
This commit is contained in:
parent
d6918a4ed0
commit
0c5fc7b201
@ -51,21 +51,23 @@ function init__SYSTEM_SAI_saimod_sys_locale() {
|
||||
$('#'+cData.lang).addClass('active');
|
||||
saimod_sys_locale_loadcontent(cData.lang, cData.group);
|
||||
if (cData.editmode === true){
|
||||
console.log("now i am true");
|
||||
saimod_sys_locale_loadsinglecontent(cData.id, cData.lang);
|
||||
cData.editmode = false;
|
||||
}});
|
||||
|
||||
$('#changetext').click(function(){
|
||||
saimod_sys_locale_savecontent(cData.id, cData.lang);});
|
||||
|
||||
$('#del_text').click(function(){
|
||||
saimod_sys_locale_delete($('#modaltitle').html());});
|
||||
saimod_sys_locale_delete($('#modaltitle').html());
|
||||
cData.editmode = false;});
|
||||
$(document).keyup(function(e) {
|
||||
if (e.keyCode === 27) { $('#addtext').show(); } // esc
|
||||
});
|
||||
}
|
||||
|
||||
function saimod_sys_locale_newtext(){
|
||||
cData.editmode = true;
|
||||
$('#modaltitle').hide();
|
||||
$('#modaltextarea').hide();
|
||||
$('#del_text').hide();
|
||||
@ -165,6 +167,7 @@ function saimod_sys_locale_loadsinglecontent(id, lang){
|
||||
}
|
||||
|
||||
function saimod_sys_locale_loadcontent(id, group){
|
||||
cData.editmode = true;
|
||||
$('#tab-content').load(SAI_ENDPOINT+'sai_mod=.SYSTEM.SAI.saimod_sys_locale&action=load&id='+id+'&group='+group, function(){
|
||||
$('.tableentry').click(function(){
|
||||
cData.editmode = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user