Dear
In the Rename menu item box
How to edit (Да ,Нет)can't done by control panel translation
Regards
function rename_node(e,data){
var oldName=data.rslt.old_name;
var newName=data.rslt.new_name;
if(oldName==newName) return;
dlgConfirm.confirm("<?php echo CJavaScript::encode(tt("Dou you really want to rename menu item")); ?> "+oldName+" <?php echo CJavaScript::encode(tt("in")); ?> "+newName+" ",<?php echo CJavaScript::encode(tt("Rename menu item")); ?>,
function(){
$.post(
'<?php echo $this->createUrl("rename"); ?>',
{
"pid" : data.rslt.obj.attr("pid"),
"title" : newName
},
function (respdata) {
jstree.jstree("refresh");
}
)
.error(function(jqXHR){
$.jstree.rollback(data.rlbk);
dlgStatus.notice(jqXHR.responseText,<?php echo CJavaScript::encode(tc("Error")); ?>).open();
});
},true,
function(){
$.jstree.rollback(data.rlbk);
},
).open();
};
function rename_node(e,data){
var oldName=data.rslt.old_name;
var newName=data.rslt.new_name;
if(oldName==newName) return;
dlgConfirm.confirm("<?php echo CJavaScript::encode(tt("Dou you really want to rename menu item")); ?> "+oldName+" <?php echo CJavaScript::encode(tt("in")); ?> "+newName+" ",<?php echo CJavaScript::encode(tt("Rename menu item")); ?>,
function(){
$.post(
'<?php echo $this->createUrl("rename"); ?>',
{
"pid" : data.rslt.obj.attr("pid"),
"title" : newName
},
function (respdata) {
jstree.jstree("refresh");
}
)
.error(function(jqXHR){
$.jstree.rollback(data.rlbk);
dlgStatus.notice(jqXHR.responseText,<?php echo CJavaScript::encode(tc("Error")); ?>).open();
});
},true,
function(){
$.jstree.rollback(data.rlbk);
},
undefined,
<?php echo CJavaScript::encode(tc("Yes")); ?>,
<?php echo CJavaScript::encode(tc("No")); ?>
).open();
};
Return to Questions and help for changes
Users browsing this forum: No registered users and 41 guests