mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Fix #2232 enable multilang in sitemap (top-level menu) name
This commit is contained in:
parent
083c9814d3
commit
8d4706ec75
3 changed files with 11 additions and 8 deletions
|
|
@ -64,7 +64,7 @@
|
|||
<ul class="_itemList">
|
||||
<li>
|
||||
<label for="sitemapName">{$lang->sitemap_name}</label>
|
||||
<input id="sitemapName" class="_sitemapName" type="text" required>
|
||||
<input id="sitemapName" class="_sitemapName lang_code" type="text" required>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btnBoth">
|
||||
|
|
@ -98,7 +98,7 @@
|
|||
<ul class="_itemList">
|
||||
<li>
|
||||
<label for="sitemapName2">{$lang->sitemap_name}</label>
|
||||
<input id="sitemapName2" class="_sitemapName" type="text" required>
|
||||
<input id="sitemapName2" class="_sitemapName lang_code" type="text" required>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btnBoth">
|
||||
|
|
@ -1577,7 +1577,7 @@ jQuery(function($){
|
|||
var $panel = $('#add_sitemap');
|
||||
|
||||
|
||||
var sTitle = $panel.find('INPUT._sitemapName').val();;
|
||||
var sTitle = $panel.find('INPUT._sitemapName').val();
|
||||
var params = {};
|
||||
params['title'] = sTitle;
|
||||
$.exec_json("menu.procMenuAdminInsert", params, function(htData){
|
||||
|
|
@ -1594,7 +1594,8 @@ jQuery(function($){
|
|||
var htInfo = htNodeInfo[sMenuId];
|
||||
|
||||
var $panel = $(this);
|
||||
$panel.find('INPUT._sitemapName').val(htInfo.title);
|
||||
$panel.find('input._sitemapName').val(htInfo.menuNameKey.match(/\$user_lang->/) ? htInfo.menuNameKey : htInfo.title.escape(false).unescape());
|
||||
$panel.find('.lang_code').trigger('reload-multilingual');
|
||||
});
|
||||
$('#sitemap_general ._save').click(function(){
|
||||
var sTitle = $('#sitemap_general INPUT._sitemapName').val();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue