Skip to content

Commit 75faf01

Browse files
committed
fix(cms): highlight in article search
1 parent 6aab6b5 commit 75faf01

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/resources/i18n/messages_zh_CN.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
admin.modules.core.applications.title=\u5E94\u7528\u7A0B\u5E8F
2-
copyright=\u7248\u672C\u6240\u6709 &copy; 2017 <a href="http://bndy.net" target="_blank">BNDY.NET</a>
2+
copyright=\u7248\u6743\u6240\u6709 &copy; 2017 <a href="http://bndy.net" target="_blank">BNDY.NET</a>
33

44
error.title=\u9519\u8BEF
55
error.description=\u5F88\u62B1\u6B49\uFF0C\u53D1\u751F\u672A\u77E5\u540D\u9519\u8BEF\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002

src/main/resources/static/apps/admin/modules/cms/articles.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<tbody>
3030
<tr ng-repeat="item in pager.content">
3131
<td>
32-
<a target="_blank" href="/article/{{item.titleKey}}" ng-bind="item.title"></a>
32+
<a class="title" target="_blank" href="/article/{{item.titleKey}}" ng-bind="item.title"></a>
3333
</td>
3434
<td ng-bind="item.createDate | date: 'yyyy-MM-dd HH:mm'"></td>
3535
<td ng-bind="item.lastUpdate | date: 'yyyy-MM-dd HH:mm'"></td>

src/main/resources/static/apps/admin/modules/cms/articles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ angular.module('app')
3333

3434
if ($scope.searchKeywords) {
3535
$timeout(function() {
36-
$('table > tbody > tr > td, table > tbody > tr > td > span').highlightText($scope.searchKeywords);
37-
}, 100);
36+
$('table .title').highlightText($scope.searchKeywords);
37+
}, 200);
3838
}
3939
});
4040
};

0 commit comments

Comments
 (0)