Skip to content

Commit

Permalink
[email protected] 그리드 모바일 뷰모드 페이징 버그 픽스
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasJang committed Oct 14, 2016
1 parent 3337043 commit 6942053
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 19 deletions.
22 changes: 14 additions & 8 deletions dist/AXJ.all.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
axisj - v1.1.9 - 2016-08-25
axisj - v1.1.10 - 2016-10-14
*/
/*!
axisj - v1.1.9 - 2016-08-25
axisj - v1.1.10 - 2016-10-14
*/

if(!window.AXConfig){
Expand Down Expand Up @@ -18204,8 +18204,8 @@ var AXGrid = Class.create(AXJ, {
}
po.push('<select name="inline_editor_item" id="' + cfg.targetID + '_inline_editor" class="inline_editor_select ' + cond.type + '">');

if($.isFunction(cond.options)){
(function(options){
if ($.isFunction(cond.options)) {
(function (options) {
for (var oi = 0; oi < options.length; oi++) {
var value, text;
value = options[oi][cond.optionValue || "optionValue"], text = options[oi][cond.optionText || "optionText"];
Expand Down Expand Up @@ -21409,9 +21409,15 @@ var AXGrid = Class.create(AXJ, {
var pgCount = this.page.pageCount.number();
var pageNo = this.page.pageNo.number();

if (pageNo + pageAdd < 1) pageNo = 1;
else if (pageNo + pageAdd > pgCount) pageNo = pgCount;
else pageNo += pageAdd;
if (pageNo + pageAdd < 1) {
return false;
}
else if (pageNo + pageAdd > pgCount) {
return false;
}
else {
pageNo += pageAdd;
}

if (cfg.viewMode == "mobile") {
axdom("#" + cfg.targetID + "_AX_gridToolTopPageNo").val(pageNo);
Expand Down Expand Up @@ -21617,7 +21623,7 @@ var AXGrid = Class.create(AXJ, {
item: item,
page: this.page,
key: CH.key,
value: item[CH.key]||""
value: item[CH.key] || ""
};
result = CH.formatter.call(sendObj, itemIndex, item);
result = ("" + result).delHtml();
Expand Down
2 changes: 1 addition & 1 deletion dist/AXJ.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/AXJ.tiny.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
axisj - v1.1.9 - 2016-08-25
axisj - v1.1.10 - 2016-10-14
*/
/*!
axisj - v1.1.9 - 2016-08-25
axisj - v1.1.10 - 2016-10-14
*/

if(!window.AXConfig){
Expand Down
20 changes: 13 additions & 7 deletions lib/AXGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* AXGrid
* @class AXGrid
* @extends AXJ
* @version v4.6.7
* @version v4.6.8
* @author [email protected]
* @example
*```
Expand Down Expand Up @@ -5907,8 +5907,8 @@ var AXGrid = Class.create(AXJ, {
}
po.push('<select name="inline_editor_item" id="' + cfg.targetID + '_inline_editor" class="inline_editor_select ' + cond.type + '">');

if($.isFunction(cond.options)){
(function(options){
if ($.isFunction(cond.options)) {
(function (options) {
for (var oi = 0; oi < options.length; oi++) {
var value, text;
value = options[oi][cond.optionValue || "optionValue"], text = options[oi][cond.optionText || "optionText"];
Expand Down Expand Up @@ -9112,9 +9112,15 @@ var AXGrid = Class.create(AXJ, {
var pgCount = this.page.pageCount.number();
var pageNo = this.page.pageNo.number();

if (pageNo + pageAdd < 1) pageNo = 1;
else if (pageNo + pageAdd > pgCount) pageNo = pgCount;
else pageNo += pageAdd;
if (pageNo + pageAdd < 1) {
return false;
}
else if (pageNo + pageAdd > pgCount) {
return false;
}
else {
pageNo += pageAdd;
}

if (cfg.viewMode == "mobile") {
axdom("#" + cfg.targetID + "_AX_gridToolTopPageNo").val(pageNo);
Expand Down Expand Up @@ -9320,7 +9326,7 @@ var AXGrid = Class.create(AXJ, {
item: item,
page: this.page,
key: CH.key,
value: item[CH.key]||""
value: item[CH.key] || ""
};
result = CH.formatter.call(sendObj, itemIndex, item);
result = ("" + result).delHtml();
Expand Down
2 changes: 1 addition & 1 deletion lib/AXJ.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
axisj - v1.1.9 - 2016-08-25
axisj - v1.1.10 - 2016-10-14
*/

if(!window.AXConfig){
Expand Down

0 comments on commit 6942053

Please sign in to comment.