Commit f4372aa2 authored by Van's avatar Van

fix #12894

parent 53336c9b
This diff is collapsed.
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* *
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a> * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.0.0, Feb 6, 2019 * @version 1.3.0.0, Sep 14, 2019
*/ */
/* article-list 相关操作 */ /* article-list 相关操作 */
...@@ -66,6 +66,11 @@ admin.articleList = { ...@@ -66,6 +66,11 @@ admin.articleList = {
$('#articleListBtn').click(function () { $('#articleListBtn').click(function () {
that.getList(page) that.getList(page)
}) })
$('#articleListInput').keypress(function(event) {
if (event.keyCode === 13) {
that.getList(page)
}
})
}, },
/** /**
...@@ -92,8 +97,8 @@ admin.articleList = { ...@@ -92,8 +97,8 @@ admin.articleList = {
$('#loadMsg').text(Label.loadingLabel) $('#loadMsg').text(Label.loadingLabel)
$.ajax({ $.ajax({
url: Label.servePath + '/console/articles/status/published/' + url: Label.servePath + '/console/articles/status/published/' +
pageNum + '/' + Label.PAGE_SIZE + '/' + Label.WINDOW_SIZE + '?k=' + pageNum + '/' + Label.PAGE_SIZE + '/' + Label.WINDOW_SIZE + '?k=' +
$('#articleListInput').val(), $('#articleListInput').val(),
type: 'GET', type: 'GET',
cache: false, cache: false,
success: function (result, textStatus) { success: function (result, textStatus) {
...@@ -181,10 +186,10 @@ admin.articleList = { ...@@ -181,10 +186,10 @@ admin.articleList = {
} }
/* /*
* 注册到 admin 进行管理 * 注册到 admin 进行管理
*/ */
admin.register['article-list'] = { admin.register['article-list'] = {
'obj': admin.articleList, 'obj': admin.articleList,
'init': admin.articleList.init, 'init': admin.articleList.init,
'refresh': admin.articleList.getList, 'refresh': admin.articleList.getList,
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment