Skip to content

Commit c639e4a

Browse files
committed
update
1 parent 2870565 commit c639e4a

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "selectpage",
3-
"version": "2.15.0",
3+
"version": "2.16.0",
44
"description": "A simple style and powerful selection jQuery plugin, including ajax remote data, autocomplete, pagination, tags, i18n, keyboard navigation functions",
55
"main": "selectpage.js",
66
"dependencies": {

selectpage.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @summary SelectPage
33
* @desc Simple and powerful selection plugin
44
* @file selectpage.js
5-
* @version 2.15
5+
* @version 2.16
66
* @author TerryZeng
77
* @contact https://terryz.github.io/
88
* @license MIT License
@@ -226,7 +226,7 @@
226226
/**
227227
* Plugin version number
228228
*/
229-
SelectPage.version = '2.15';
229+
SelectPage.version = '2.16';
230230
/**
231231
* Plugin object cache key
232232
*/
@@ -1289,7 +1289,7 @@
12891289
};
12901290

12911291
/**
1292-
* Search for json data source
1292+
* Search for ajax
12931293
* @param {Object} self
12941294
* @param {Array} q_word - query keyword
12951295
* @param {number} which_page_num - target page number
@@ -1369,7 +1369,7 @@
13691369
};
13701370

13711371
/**
1372-
* Search for ajax
1372+
* Search for json data source
13731373
* @param {Object} self
13741374
* @param {Array} q_word
13751375
* @param {number} which_page_num
@@ -2149,7 +2149,11 @@
21492149
return this.each(function(){
21502150
var $this = getPlugin(this),
21512151
data = $this.data(SelectPage.dataKey);
2152-
if(data) data.clearAll(data);
2152+
if(data){
2153+
data.prop.init_set = true;
2154+
data.clearAll(data);
2155+
data.prop.init_set = false;
2156+
}
21532157
});
21542158
}
21552159

0 commit comments

Comments
 (0)