diff options
author | Regis <boudinot.regis@yahoo.com> | 2016-11-08 12:31:41 -0700 |
---|---|---|
committer | Regis <boudinot.regis@yahoo.com> | 2016-11-08 12:31:41 -0700 |
commit | 4dd82e1d49d5dc1958c2425d1d052645638c2274 (patch) | |
tree | 98a8e5ed2d8403eefba630b62257e6ef631bdb0d | |
parent | cdbbce17cb0f83895183d342fa27e0ee015f58bb (diff) | |
download | gitlab-ce-vue-pagination-logic.tar.gz |
fix changepage logicvue-pagination-logic
-rw-r--r-- | app/assets/javascripts/vue_pipelines_index/pipelines.js.es6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/vue_pipelines_index/pipelines.js.es6 b/app/assets/javascripts/vue_pipelines_index/pipelines.js.es6 index ecb07af9a32..2c26b0a2bc7 100644 --- a/app/assets/javascripts/vue_pipelines_index/pipelines.js.es6 +++ b/app/assets/javascripts/vue_pipelines_index/pipelines.js.es6 @@ -37,9 +37,9 @@ }, changepage(event, last) { const text = event.target.innerText; - if (typeof +text === 'number') this.pagenum = +text; + if (typeof text === 'number') this.pagenum = +text; if (text === 'Last ยป') this.pagenum = last; - if (text === 'Next') this.pagnum = +this.pagenum + 1; + if (text === 'Next') this.pagenum = +this.pagenum + 1; if (text === 'Prev') this.pagenum = +this.pagenum - 1; window.history.pushState({}, null, `?p=${this.pagenum}`); |