diff --git a/module/block/js/admin.js b/module/block/js/admin.js
index 0ff9c4c3ac..b4553f34da 100644
--- a/module/block/js/admin.js
+++ b/module/block/js/admin.js
@@ -1,5 +1,11 @@
$(function()
{
+ var blockTitle = '';
+ $(document).on('change', '#blockParams #paramstype', function()
+ {
+ $('#blockParams').find('#title').val(blockTitle + ' - ' + $(this).find('option:selected').html());
+ });
+
var $form = $('#blockAdminForm');
$form.find('.chosen').chosen();
@@ -16,6 +22,9 @@ $(function()
$form.addClass('form-inited');
$blockParams.find('input:first').focus();
if($blockParams.find('#actionLink').size() > 0) $form.attr('action', $blockParams.find('#actionLink').val());
+
+ blockTitle = $blockParams.find('#title').val();
+ if($('#blockParams #paramstype').length > 0) $blockParams.find('#title').val(blockTitle + ' - ' + $('#blockParams #paramstype').find('option:selected').html());
};
// 获取 html 和 rss 区块参数
@@ -29,10 +38,7 @@ $(function()
$.get(createLink('block', 'set', 'id=' + blockID + '&type=' + type), function(data)
{
updateParams(data);
- if (type === 'welcome')
- {
- $blockParams.find('#title').closest('.form-group').hide();
- }
+ if(type === 'welcome') $blockParams.find('#title').closest('.form-group').hide();
});
};
diff --git a/module/block/js/dashboard.js b/module/block/js/dashboard.js
index f7bd58480b..d2baca0ef0 100644
--- a/module/block/js/dashboard.js
+++ b/module/block/js/dashboard.js
@@ -247,5 +247,3 @@ $(function()
refreshBlock($(this).closest('.panel'));
});
});
-
-
diff --git a/module/block/lang/zh-cn.php b/module/block/lang/zh-cn.php
index 150463119f..77625497f9 100644
--- a/module/block/lang/zh-cn.php
+++ b/module/block/lang/zh-cn.php
@@ -55,7 +55,7 @@ $lang->block->editBlock = '编辑区块';
$lang->block->ordersSaved = '排序已保存';
$lang->block->confirmRemoveBlock = '确定移除区块吗?';
$lang->block->noticeNewBlock = '10.0版本以后各个视图主页提供了全新的视图,您要启用新的视图布局吗?';
-$lang->block->confirmReset = '是否恢复默认布局';
+$lang->block->confirmReset = '是否恢复默认布局?';
$lang->block->closeForever = '永久关闭';
$lang->block->confirmClose = '确定永久关闭该区块吗?关闭后所有人都将无法使用该区块,可以在后台自定义中打开。';
$lang->block->remove = '移除';
diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php
index 45f488d98d..79fc84af9b 100644
--- a/module/bug/view/browse.html.php
+++ b/module/bug/view/browse.html.php
@@ -204,6 +204,8 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow
{
if($value->show)
{
+ if($this->app->getClientLang() == 'en' and $value->id == 'severity') $value->name = 'Severity';
+ if($this->app->getClientLang() == 'en' and $value->id == 'pri') $value->name = 'Priority';
$this->datatable->printHead($value, $orderBy, $vars);
$columns ++;
}
diff --git a/module/common/model.php b/module/common/model.php
index a6331566c8..00855afdf1 100644
--- a/module/common/model.php
+++ b/module/common/model.php
@@ -254,12 +254,12 @@ class commonModel extends model
if(!$isGuest)
{
echo '
';
- echo "";
+ echo "user->role) && isset($lang->user->roleList[$app->user->role]) ? '' : ' no-role') . "'>";
echo "" . strtoupper($app->user->account{0}) . "
\n";
echo '' . (empty($app->user->realname) ? $app->user->account : $app->user->realname) . '
';
if(isset($lang->user->roleList[$app->user->role])) echo '' . $lang->user->roleList[$app->user->role] . '
';
echo '';
- echo '' . html::a(helper::createLink('my', 'profile', '', '', true), $lang->profile, '', "class='iframe' data-width='600'") . '';
+ echo '' . html::a(helper::createLink('my', 'profile'), $lang->profile) . '';
echo '' . html::a(helper::createLink('my', 'changepassword', '', '', true), $lang->changePassword, '', "class='iframe' data-width='500'") . '';
echo "";
diff --git a/module/doc/view/alllibs.html.php b/module/doc/view/alllibs.html.php
index 501318986a..f8d3a82ba0 100644
--- a/module/doc/view/alllibs.html.php
+++ b/module/doc/view/alllibs.html.php
@@ -24,8 +24,8 @@
doclib->tabList, $type);?>
- ", '', "title='{$lang->doc->browseTypeList['list']}' class='btn btn-icon'");?>
", '', "title='{$lang->doc->browseTypeList['grid']}' class='btn btn-icon text-primary'");?>
+ ", '', "title='{$lang->doc->browseTypeList['list']}' class='btn btn-icon'");?>
diff --git a/module/doc/view/alllibsbylist.html.php b/module/doc/view/alllibsbylist.html.php
index 668d922d3c..c6091df598 100644
--- a/module/doc/view/alllibsbylist.html.php
+++ b/module/doc/view/alllibsbylist.html.php
@@ -5,8 +5,8 @@
doclib->tabList, $type);?>
- ", '', "title='{$lang->doc->browseTypeList['list']}' class='btn btn-icon text-primary'");?>
", '', "title='{$lang->doc->browseTypeList['grid']}' class='btn btn-icon'");?>
+ ", '', "title='{$lang->doc->browseTypeList['list']}' class='btn btn-icon text-primary'");?>
diff --git a/module/doc/view/browse.html.php b/module/doc/view/browse.html.php
index db1ae3decb..823dca830c 100644
--- a/module/doc/view/browse.html.php
+++ b/module/doc/view/browse.html.php
@@ -39,8 +39,8 @@ var browseType = '';