diff --git a/package.json b/package.json index d6d619e..4e3d844 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "selectpage", - "version": "2.18.0", + "version": "2.19.0", "description": "A simple style and powerful selection jQuery plugin, including ajax remote data, autocomplete, pagination, tags, i18n, keyboard navigation functions", "main": "selectpage.js", "dependencies": { diff --git a/selectpage.css b/selectpage.css index 8477129..6c4e57e 100644 --- a/selectpage.css +++ b/selectpage.css @@ -50,6 +50,7 @@ .sp_container_open .sp_input { border-radius: 2px !important; } +.sp_container_open .sp_button span.sp_caret { transform: rotate(180deg); } /** * "Get all" button @@ -92,6 +93,7 @@ div.sp_button span.sp_caret { /*border-top: 4px solid\9;*/ border-right: 4px solid transparent; border-left: 4px solid transparent; + transition:transform .2s ease; } div.sp_clear_btn { @@ -142,11 +144,17 @@ div.sp_result_area.shadowDown{ box-shadow: 0 3px 12px rgba(0,0,0,0.2); -moz-box-shadow: 0 3px 12px rgba(0,0,0,0.2); -webkit-box-shadow: 0 3px 12px rgba(0,0,0,0.2); + + -webkit-animation: dropDownFadeInDown 200ms cubic-bezier(.23,1,.32,1); + animation: dropDownFadeInDown 200ms cubic-bezier(.23,1,.32,1); } div.sp_result_area.shadowUp{ box-shadow: 0 -1px 12px rgba(0,0,0,0.2); -moz-box-shadow: 0 -1px 12px rgba(0,0,0,0.2); -webkit-box-shadow: 0 -1px 12px rgba(0,0,0,0.2); + + -webkit-animation: dropDownFadeInUp 300ms cubic-bezier(.23,1,.32,1); + animation: dropDownFadeInUp 300ms cubic-bezier(.23,1,.32,1); } .sp_results { background-color: white; @@ -458,7 +466,7 @@ div.sp_navi > p { /** - * 分页条样式(基于Bootstrap2的样式进行调整) + * 分页条样式 */ div.sp_result_area div.sp_pagination { margin: 0; @@ -560,10 +568,17 @@ div.sp_result_area div.sp_pagination>ul>li.pageInfoBox>a:hover { - +@keyframes dropDownFadeInDown { + from{ opacity: 0;transform: translate3d(0, -20px, 0); } + to{ opacity: 1;transform: translate3d(0, 0, 0); } +} +@keyframes dropDownFadeInUp { + from{ opacity: 0;transform: translate3d(0, 20px, 0); } + to{ opacity: 1;transform: translate3d(0, 0, 0); } +} /* icons */ -@font-face {font-family: "iconfont"; +@font-face {font-family: "sp-iconfont"; src: url('data:image/eot;base64,zA0AACQNAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAfJwy7wAAAAAAAAAAAAAAAAAAAAAAABAAaQBjAG8AbgBmAG8AbgB0AAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAQAGkAYwBvAG4AZgBvAG4AdAAAAAAAAAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kj9AAABfAAAAFZjbWFwNbM7dAAAAgAAAAI2Z2x5ZtLBAFwAAARQAAAFxGhlYWQPYaJpAAAA4AAAADZoaGVhB94DjQAAALwAAAAkaG10eCvqAAAAAAHUAAAALGxvY2EIbAmwAAAEOAAAABhtYXhwARoAeAAAARgAAAAgbmFtZT5U/n0AAAoUAAACbXBvc3ScItv9AAAMhAAAAKAAAQAAA4D/gABcBAEAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAsAAQAAAAEAAO8ynHxfDzz1AAsEAAAAAADWIS8pAAAAANYhLykAAP/ABAADWgAAAAgAAgAAAAAAAAABAAAACwBsAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP+AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjnDQOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQBAAAAAAAFAAAAAwAAACwAAAAEAAAB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DdWsKSur2ARiyvq+r6nPCxRBG3zX8yJDj54nGNgZGBgAOL3RuU28fw2Xxm4WRhA4JqiviaC/n+AhYE5CsjlYGACiQIA93sITQB4nGNgZGBgbvjfwBDDAmQxMLAwMIBpJMANAEcqAnUAAHicY2FgYGB+ycDAwkAAMzIwAAAnpgEWAAAAAAAAdgCwAUIBiAHIAggCLAKOAsAC4nicY2BkYGDgZshhYGUAASYg5gJCBob/YD4DABRyAZMAeJxlj01OwzAQhV/6B6QSqqhgh+QFYgEo/RGrblhUavdddN+mTpsqiSPHrdQDcB6OwAk4AtyAO/BIJ5s2lsffvHljTwDc4Acejt8t95E9XDI7cg0XuBeuU38QbpBfhJto41W4Rf1N2MczpsJtdGF5g9e4YvaEd2EPHXwI13CNT+E69S/hBvlbuIk7/Aq30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicbYnNDsIgEAb3q8Va8Kav0YNPZMiKsFrZBKmpPr1/N+OcJjPU0BdL/3FosEALgyU6rNDDwmFNmA2nwGcrrHngMfjSz5PPj6Q5bj/xICVwlZcVialufuIYjrW967TrTpJj9Oqy3iTq/j1MlUu4Ej0BvEMlfAAAAA==') format('woff'), @@ -571,8 +586,8 @@ div.sp_result_area div.sp_pagination>ul>li.pageInfoBox>a:hover { url('data:image/svg;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TV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kuMTAyLTMxNi40MDYgMzE2LjQwNS0zMTYuNDA1LTMxNi40MDUtNzkuMTA0IDc5LjEwMkw0MzIuODk5IDM4NCAxMTYuNDk0IDcwMC40MDVsNzkuMTA0IDc5LjA5OSAzMTYuNDA1LTMxNi40MDVMODI4LjQxIDc3OS41MDRsNzkuMDk4LTc5LjA5OUw1OTEuMTAyIDM4NGwzMTYuNDA1LTMxNi40MDV6IiAgaG9yaXotYWR2LXg9IjEwMjUiIC8+CgogICAgCgoKICA8L2ZvbnQ+CjwvZGVmcz48L3N2Zz4K') format('svg'); /* iOS 4.1- */ } -.iconfont { - font-family:"iconfont" !important; +.sp-iconfont { + font-family:"sp-iconfont" !important; font-size:16px; font-style:normal; -webkit-font-smoothing: antialiased; @@ -580,19 +595,11 @@ div.sp_result_area div.sp_pagination>ul>li.pageInfoBox>a:hover { } .if-unselect-all:before { content: "\e634"; } - .if-clear:before { content: "\e68c"; } - .if-select-all:before { content: "\e628"; } - .if-last:before { content: "\e67e"; } - .if-first:before { content: "\e681"; } - .if-next:before { content: "\e70d"; } - .if-warning:before { content: "\e63c"; } - .if-previous:before { content: "\e65a"; } - .if-close:before { content: "\e600"; } \ No newline at end of file diff --git a/selectpage.js b/selectpage.js index 2816041..fdf63be 100644 --- a/selectpage.js +++ b/selectpage.js @@ -2,7 +2,7 @@ * @summary SelectPage * @desc Simple and powerful selection plugin * @file selectpage.js - * @version 2.18 + * @version 2.19 * @author TerryZeng * @contact https://terryz.github.io/ * @license MIT License @@ -105,11 +105,11 @@ andOr: 'AND', /** * Result sort type - * @type array - if not set, will default used showField field + * @type array|boolean * @example * orderBy : ['id desc'] */ - orderBy: undefined, + orderBy: false, /** * Page size * @type number @@ -227,7 +227,7 @@ /** * Plugin version number */ - SelectPage.version = '2.18'; + SelectPage.version = '2.19'; /** * Plugin object cache key */ @@ -249,12 +249,9 @@ option[arr[i]] = this.strToArray(option[arr[i]]); } - //set default order field - option.orderBy = option.orderBy || option.showField; - //set multiple order field - //example: [ ['id', 'ASC'], ['name', 'DESC'] ] - option.orderBy = this.setOrderbyOption(option.orderBy, option.showField); + //example: [ ['id ASC'], ['name DESC'] ] + if(option.orderBy !== false) option.orderBy = this.setOrderbyOption(option.orderBy, option.showField); //close auto fill result and auto select first in multiple mode and select item not close list if(option.multiple && !option.selectToCloseList){ option.autoFillResult = false; @@ -273,26 +270,26 @@ * @return {Array} */ SelectPage.prototype.strToArray = function(str) { - if(!str) return ''; - return str.replace(/[\s ]+/g, '').split(','); + return str ? str.replace(/[\s ]+/g, '').split(',') : ''; }; /** * Set order field * @param {Array} arg_order - * @param {string} arg_field + * @param {string} arg_field - default sort field * @return {Array} */ SelectPage.prototype.setOrderbyOption = function(arg_order, arg_field) { var arr = [],orders = []; - if (typeof arg_order == 'object') { + if (typeof arg_order === 'object') { for (var i = 0; i < arg_order.length; i++) { orders = $.trim(arg_order[i]).split(' '); - arr[i] = (orders.length == 2) ? orders: [orders[0], 'ASC']; + if(orders.length) + arr.push((orders.length === 2) ? orders.concat(): [orders[0], 'ASC']); } } else { orders = $.trim(arg_order).split(' '); - arr[0] = (orders.length == 2) ? orders: (orders[0].match(/^(ASC|DESC)$/i)) ? [arg_field, orders[0]] : [orders[0], 'ASC']; + arr[0] = (orders.length === 2) ? orders.concat(): (orders[0].toUpperCase().match(/^(ASC|DESC)$/i)) ? [arg_field, orders[0].toUpperCase()] : [orders[0], 'ASC']; } return arr; }; @@ -354,7 +351,7 @@ close_alt: '(button)', loading: 'loading...', loading_alt: '(loading)', - page_info: 'page_num of page_count', + page_info: 'Page page_num of page_count', select_ng: 'Attention : Please choose from among the list.', select_ok: 'OK : Correctly selected.', not_found: 'not found', @@ -523,6 +520,7 @@ disabled: 'sp_disabled', button: 'sp_button', + caret_open: 'sp_caret_open', btn_on: 'sp_btn_on', btn_out: 'sp_btn_out', input: 'sp_input', @@ -556,7 +554,7 @@ }; this.template = { tag: { - content : '
  • #item_text#
  • ', + content : '
  • #item_text#
  • ', textKey : '#item_text#', valueKey : '#item_value#' }, @@ -654,7 +652,7 @@ //drop down button elem.dropdown = $(''); //clear button 'X' in single mode - elem.clear_btn = $('
    ').html($('').addClass('iconfont if-close')).addClass(css.clear_btn).attr('title', msg.clear); + elem.clear_btn = $('
    ').html($('').addClass('sp-iconfont if-close')).addClass(css.clear_btn).attr('title', msg.clear); if(!p.dropButton) elem.clear_btn.addClass(css.align_right); //main box in multiple mode @@ -696,9 +694,9 @@ //Multiple select mode if(p.multiple){ if(p.multipleControlbar){ - elem.control.append(''); - elem.control.append(''); - elem.control.append(''); + elem.control.append(''); + elem.control.append(''); + elem.control.append(''); elem.control_text = $('

    '); elem.control.append(elem.control_text); elem.result_area.prepend(elem.control); @@ -819,7 +817,7 @@ self.clearAll(self); $.each(data,function(i,row){ var item = {text:getText(row),value:row[p.keyField]}; - if(!self.isAlreadySelected(self,item)) self.addNewTag(self,item); + if(!self.isAlreadySelected(self,item)) self.addNewTag(self, row, item); }); self.tagValuesSet(self); self.inputResize(self); @@ -877,7 +875,7 @@ el.container.on('click.SelectPage','div.'+self.css_class.clear_btn,function(e){ e.stopPropagation(); if(!self.disabled(self)){ - self.clearAll(self); + self.clearAll(self, true); if(p.eClear && $.isFunction(p.eClear)) p.eClear(self); } }); @@ -904,7 +902,7 @@ }); //Clear all selected item el.control.find('.sp_clear_all').on('click.SelectPage',function(e){ - self.clearAll(self); + self.clearAll(self, true); }).hover(function(){ el.control_text.html(msg.clear_all); },function(){ @@ -917,11 +915,10 @@ }); //Tag close el.element_box.on('click.SelectPage','span.tag_close',function(){ - var li = $(this).closest('li'); - self.removeTag(self,li); + var li = $(this).closest('li'), data = li.data('dataObj'); + self.removeTag(self, li); showList(); - if(p.eTagRemove && $.isFunction(p.eTagRemove)) - p.eTagRemove(1, self); + if(p.eTagRemove && $.isFunction(p.eTagRemove)) p.eTagRemove([data]); }); self.inputResize(self); } @@ -953,11 +950,11 @@ d.hideResults(d); return true; } - if (d.elem.results.find('li').not('.'+css.message_box).size()) { + if (d.elem.results.find('li').not('.'+css.message_box).length) { if(d.option.autoFillResult) { //have selected item, then hide result list if (d.elem.hidden.val()) d.hideResults(d); - else if(d.elem.results.find('li.sp_over').size()){ + else if(d.elem.results.find('li.sp_over').length){ //no one selected and have highlight item, select the highlight item d.selectCurrentLine(d, true); }else if(d.option.autoSelectFirst){ @@ -1080,7 +1077,7 @@ */ SelectPage.prototype.showMessage = function(self,msg){ if(!msg) return; - var msgLi = '

  • '+msg+'
  • '; + var msgLi = '
  • '+msg+'
  • '; self.elem.results.empty().append(msgLi).show(); self.calcResultsSize(self); self.setOpenStatus(self, true); @@ -1302,9 +1299,9 @@ pageNumber: which_page_num, pageSize: p.pageSize, andOr: p.andOr, - orderBy: p.orderBy, searchTable: p.dbTable }; + if(p.orderBy !== false) _orgParams.orderBy = p.orderBy; _orgParams[searchKey] = q_word[0]; if (_paramsFunc && $.isFunction(_paramsFunc)) { var result = _paramsFunc.call(self); @@ -1384,7 +1381,7 @@ } while ( i < q_word.length ); // SELECT * FROM data WHERE field LIKE q_word; - for (i = 0; i < p.data.length; i++) { + for (var i = 0; i < p.data.length; i++) { var flag = false, row = p.data[i], itemText; for (var j = 0; j < arr_reg.length; j++) { itemText = row[p.searchField]; @@ -1402,31 +1399,34 @@ } // (CASE WHEN ...) then く order some column - var reg1 = new RegExp('^' + esc_q[0] + '$', 'gi'), - reg2 = new RegExp('^' + esc_q[0], 'gi'), - matched1 = [], matched2 = [], matched3 = []; - for (i = 0; i < matched.length; i++) { - var orderField = p.orderBy[0][0]; - var orderValue = String(matched[i][orderField]); - if (orderValue.match(reg1)) { - matched1.push(matched[i]); - } else if (orderValue.match(reg2)) { - matched2.push(matched[i]); - } else { - matched3.push(matched[i]); - } - } + if(p.orderBy === false) sorted = matched.concat(); + else{ + var reg1 = new RegExp('^' + esc_q[0] + '$', 'gi'), + reg2 = new RegExp('^' + esc_q[0], 'gi'), + matched1 = [], matched2 = [], matched3 = []; + for (var i = 0; i < matched.length; i++) { + var orderField = p.orderBy[0][0]; + var orderValue = String(matched[i][orderField]); + if (orderValue.match(reg1)) { + matched1.push(matched[i]); + } else if (orderValue.match(reg2)) { + matched2.push(matched[i]); + } else { + matched3.push(matched[i]); + } + } - if (p.orderBy[0][1].match(/^asc$/i)) { - matched1 = self.sortAsc(self, matched1); - matched2 = self.sortAsc(self, matched2); - matched3 = self.sortAsc(self, matched3); - } else { - matched1 = self.sortDesc(self, matched1); - matched2 = self.sortDesc(self, matched2); - matched3 = self.sortDesc(self, matched3); - } - sorted = sorted.concat(matched1).concat(matched2).concat(matched3); + if (p.orderBy[0][1].match(/^asc$/i)) { + matched1 = self.sortAsc(self, matched1); + matched2 = self.sortAsc(self, matched2); + matched3 = self.sortAsc(self, matched3); + } else { + matched1 = self.sortDesc(self, matched1); + matched2 = self.sortDesc(self, matched2); + matched3 = self.sortDesc(self, matched3); + } + sorted = sorted.concat(matched1).concat(matched2).concat(matched3); + } /* if (sorted.length === undefined || sorted.length === 0 ) { @@ -1467,7 +1467,7 @@ //save original data json.originalResult = []; //after data filter handle - for (i = start; i < end; i++) { + for (var i = start; i < end; i++) { if (sorted[i] === undefined) break; json.originalResult.push(sorted[i]); for (var key in sorted[i]) { @@ -1562,12 +1562,12 @@ var pageInfo = msg.page_info; return pageInfo.replace(self.template.page.current, page_num).replace(self.template.page.total, last_page); }; - if (pagebar.find('li').size() === 0) { + if (pagebar.find('li').length === 0) { pagebar.hide().empty(); - var iconFist='iconfont if-first', - iconPrev='iconfont if-previous', - iconNext='iconfont if-next', - iconLast='iconfont if-last'; + var iconFist='sp-iconfont if-first', + iconPrev='sp-iconfont if-previous', + iconNext='sp-iconfont if-next', + iconLast='sp-iconfont if-last'; pagebar.append('
  • '); pagebar.append('
  • '); @@ -1629,7 +1629,7 @@ var p = self.option, el = self.elem; el.results.hide().empty(); if(p.multiple && $.type(p.maxSelectLimit) === 'number' && p.maxSelectLimit > 0){ - var selectedSize = el.element_box.find('li.selected_tag').size(); + var selectedSize = el.element_box.find('li.selected_tag').length; if(selectedSize > 0 && selectedSize >= p.maxSelectLimit){ var msg = self.message.max_selected; self.showMessage(self, msg.replace(self.template.msg.maxSelectLimit, p.maxSelectLimit)); @@ -1666,7 +1666,7 @@ el.results.append(list); } }else{ - var li = '
  • '+ + var li = '
  • '+ self.message.not_found + '
  • '; el.results.append(li); } @@ -1795,10 +1795,8 @@ if($.type(disabled) === 'undefined') return el.combo_input.prop('disabled'); if($.type(disabled) === 'boolean'){ el.combo_input.prop('disabled', disabled); - if(disabled) - el.container.addClass(self.css_class.disabled); - else - el.container.removeClass(self.css_class.disabled); + if(disabled) el.container.addClass(self.css_class.disabled); + else el.container.removeClass(self.css_class.disabled); } }; @@ -1852,8 +1850,9 @@ /** * do something after select/unSelect action * @param {Object} self + * @param {boolean} reOpen */ - SelectPage.prototype.afterAction = function(self){ + SelectPage.prototype.afterAction = function(self, reOpen){ self.inputResize(self); self.elem.combo_input.change(); self.setCssFocusedInput(self); @@ -1862,7 +1861,8 @@ if(self.option.selectToCloseList){ self.hideResults(self); self.elem.combo_input.blur(); - }else{ + } + if(!self.option.selectToCloseList && reOpen){ self.suggest(self); self.elem.combo_input.focus(); } @@ -1882,15 +1882,16 @@ var p = self.option, current = self.getCurrentLine(self); if (current) { + var data = current.data('dataObj'); if(!p.multiple){ self.elem.combo_input.val(current.text()); self.elem.hidden.val(current.attr('pkey')); }else{ //build tags in multiple selection mode self.elem.combo_input.val(''); - var item = {text:current.text(),value:current.attr('pkey')}; - if(!self.isAlreadySelected(self,item)){ - self.addNewTag(self,item); + var item = {text:current.text(), value:current.attr('pkey')}; + if(!self.isAlreadySelected(self, item)){ + self.addNewTag(self, data, item); self.tagValuesSet(self); } } @@ -1898,15 +1899,14 @@ if (p.selectOnly) self.setButtonAttrDefault(); //Select item callback - if(p.eSelect && $.isFunction(p.eSelect)) - p.eSelect(current.data('dataObj'), self); + if(p.eSelect && $.isFunction(p.eSelect)) p.eSelect(data, self); self.prop.prev_value = self.elem.combo_input.val(); self.prop.selected_text = self.elem.combo_input.val(); self.putClearButton(); } - self.afterAction(self); + self.afterAction(self, true); }; /** * Show clear button when item selected in single selection mode @@ -1921,57 +1921,58 @@ SelectPage.prototype.selectAllLine = function(self){ var p = self.option, jsonarr = new Array(); self.elem.results.find('li').each(function(i,row){ - var $row = $(row); + var $row = $(row), data = $row.data('dataObj'); var item = {text:$row.text(),value:$row.attr('pkey')}; if(!self.isAlreadySelected(self,item)){ - self.addNewTag(self,item); + self.addNewTag(self, data, item); self.tagValuesSet(self); } - jsonarr.push($row.data('dataObj')); + jsonarr.push(data); //limited max selected items if($.type(p.maxSelectLimit) === 'number' && p.maxSelectLimit > 0 && - p.maxSelectLimit === self.elem.element_box.find('li.selected_tag').size()){ + p.maxSelectLimit === self.elem.element_box.find('li.selected_tag').length){ return false; } }); - if(p.eSelect && $.isFunction(p.eSelect)) - p.eSelect(jsonarr, self); - self.afterAction(self); + if(p.eSelect && $.isFunction(p.eSelect)) p.eSelect(jsonarr, self); + self.afterAction(self, true); }; /** * Cancel select all item in current page * @param {Object} self */ SelectPage.prototype.unSelectAllLine = function(self){ - var p = self.option,size = self.elem.results.find('li').size(); + var p = self.option,size = self.elem.results.find('li').length, ds = []; self.elem.results.find('li').each(function(i,row){ var key = $(row).attr('pkey'); var tag = self.elem.element_box.find('li.selected_tag[itemvalue="'+key+'"]'); - self.removeTag(self,tag); + if(tag.length) ds.push(tag.data('dataObj')); + self.removeTag(self, tag); }); - self.afterAction(self); - if(p.eTagRemove && $.isFunction(p.eTagRemove)) - p.eTagRemove(size, self); + self.afterAction(self, true); + if(p.eTagRemove && $.isFunction(p.eTagRemove)) p.eTagRemove(ds); }; /** * Clear all selected items * @param {Object} self + * @param {boolean} open - open list after clear selected item */ - SelectPage.prototype.clearAll = function(self){ - var p = self.option, size = 0; + SelectPage.prototype.clearAll = function(self, open){ + var p = self.option, ds = []; if(p.multiple){ - size = self.elem.element_box.find('li.selected_tag').size(); + self.elem.element_box.find('li.selected_tag').each(function(i, row){ + ds.push($(row).data('dataObj')); + row.remove(); + }); self.elem.element_box.find('li.selected_tag').remove(); } self.reset(self); - self.afterAction(self); + self.afterAction(self, open); - if(!p.multiple) self.elem.clear_btn.remove(); if(p.multiple) { - if (p.eTagRemove && $.isFunction(p.eTagRemove)) - p.eTagRemove(size, self); - } + if (p.eTagRemove && $.isFunction(p.eTagRemove)) p.eTagRemove(ds); + }else self.elem.clear_btn.remove(); }; /** @@ -1992,7 +1993,7 @@ SelectPage.prototype.getCurrentLine = function(self) { if (self.elem.result_area.is(':hidden')) return false; var obj = self.elem.results.find('li.' + self.css_class.select); - if (obj.size()) return obj; + if (obj.length) return obj; else return false; }; @@ -2016,14 +2017,16 @@ /** * Add a new tag in multiple selection mode * @param {Object} self + * @param {object} data - raw row data * @param {Object} item */ - SelectPage.prototype.addNewTag = function(self,item){ - if(!self.option.multiple || !item) return; + SelectPage.prototype.addNewTag = function(self, data, item){ + if(!self.option.multiple || !data || !item) return; var tmp = self.template.tag.content,tag; tmp = tmp.replace(self.template.tag.textKey,item.text); tmp = tmp.replace(self.template.tag.valueKey,item.value); tag = $(tmp); + tag.data('dataObj', data); if(self.elem.combo_input.prop('disabled')) tag.find('span.tag_close').hide(); self.elem.combo_input.closest('li').before(tag); }; @@ -2054,7 +2057,7 @@ SelectPage.prototype.tagValuesSet = function(self){ if(!self.option.multiple) return; var tags = self.elem.element_box.find('li.selected_tag'); - if(tags && tags.size()){ + if(tags && tags.length){ var result = new Array(); $.each(tags,function(i,li){ var v = $(li).attr('itemvalue'); @@ -2080,7 +2083,7 @@ width = (minimumWidth * 0.75) + 'em'; self.elem.combo_input.css('width', width).removeAttr('placeholder'); }; - if(self.elem.element_box.find('li.selected_tag').size() === 0){ + if(self.elem.element_box.find('li.selected_tag').length === 0){ if(self.elem.combo_input.attr('placeholder_bak')){ if(!inputLi.hasClass('full_width')) inputLi.addClass('full_width'); self.elem.combo_input.attr('placeholder',self.elem.combo_input.attr('placeholder_bak')).removeAttr('style'); diff --git a/selectpage.min.js b/selectpage.min.js index 90d0896..5ba4373 100644 --- a/selectpage.min.js +++ b/selectpage.min.js @@ -1 +1 @@ -(function(g){var e={data:undefined,lang:"cn",multiple:false,pagination:true,dropButton:true,listSize:10,multipleControlbar:true,maxSelectLimit:0,selectToCloseList:false,initRecord:undefined,dbTable:"tbl",keyField:"id",showField:"name",searchField:undefined,andOr:"AND",orderBy:undefined,pageSize:10,params:undefined,formatItem:undefined,autoFillResult:false,autoSelectFirst:false,noResultClean:true,selectOnly:false,inputDelay:0.5,eSelect:undefined,eOpen:undefined,eAjaxSuccess:undefined,eTagRemove:undefined,eClear:undefined};var h=function(l,m){this.setOption(m);this.setLanguage();this.setCssClass();this.setProp();this.setElem(l);this.setButtonAttrDefault();this.setInitRecord();this.eDropdownButton();this.eInput();this.eWhole()};h.version="2.18";h.dataKey="selectPageObject";h.prototype.setOption=function(n){n.searchField=n.searchField||n.showField;n.andOr=n.andOr.toUpperCase();if(n.andOr!=="AND"&&n.andOr!=="OR"){n.andOr="AND"}var l=["searchField"];for(var m=0;m#item_text#',textKey:"#item_text#",valueKey:"#item_value#"},page:{current:"page_num",total:"page_count"},msg:{maxSelectLimit:"max_selected_limit"}}};h.prototype.elementRealSize=function(q,l){var p={absolute:false,clone:false,includeMargin:false,display:"block"};var t=p,o=q.eq(0),s,u,r=[],n="",m;s=function(){m=o.parents().addBack().filter(":hidden");n+="visibility: hidden !important; display: "+t.display+" !important; ";if(t.absolute===true){n+="position: absolute !important;"}m.each(function(){var w=g(this),x=w.attr("style");r.push(x);w.attr("style",x?x+";"+n:n)})};u=function(){m.each(function(w){var y=g(this),x=r[w];if(x===undefined){y.removeAttr("style")}else{y.attr("style",x)}})};s();var v=/(outer)/.test(l)?o[l](t.includeMargin):o[l]();u();return v};h.prototype.setElem=function(q){var o={},m=this.option,u=this.css_class,n=this.message,x=g(q);var s=x.outerWidth();if(s<=0){s=this.elementRealSize(x,"outerWidth")}if(s<150){s=150}o.combo_input=x.attr({"autocomplete":"off"}).addClass(u.input).wrap("
    ");if(m.selectOnly){o.combo_input.prop("readonly",true)}o.container=o.combo_input.parent().addClass(u.container);if(o.combo_input.prop("disabled")){if(m.multiple){o.container.addClass(u.disabled)}else{o.combo_input.addClass(u.input_off)}}o.container.width(s);o.button=g("
    ").addClass(u.button);o.dropdown=g('');o.clear_btn=g("
    ").html(g("").addClass("iconfont if-close")).addClass(u.clear_btn).attr("title",n.clear);if(!m.dropButton){o.clear_btn.addClass(u.align_right)}o.element_box=g("
      ").addClass(u.element_box);if(m.multiple&&m.multipleControlbar){o.control=g("
      ").addClass(u.control_box)}o.result_area=g("
      ").addClass(u.re_area);if(m.pagination){o.navi=g("
      ").addClass("sp_pagination").append("
        ")}o.results=g("
          ").addClass(u.results);var l="_text",w=o.combo_input.attr("id")||o.combo_input.attr("name"),t=o.combo_input.attr("name")||"selectPage",v=t,r=w;o.hidden=g('').attr({name:v,id:r}).val("");o.combo_input.attr({name:t+l,id:w+l});o.container.append(o.hidden);if(m.dropButton){o.container.append(o.button);o.button.append(o.dropdown)}g(document.body).append(o.result_area);o.result_area.append(o.results);if(m.pagination){o.result_area.append(o.navi)}if(m.multiple){if(m.multipleControlbar){o.control.append('');o.control.append('');o.control.append('');o.control_text=g("

          ");o.control.append(o.control_text);o.result_area.prepend(o.control)}o.container.addClass("sp_container_combo");o.combo_input.addClass("sp_combo_input").before(o.element_box);var y=g("

        • ").addClass("input_box");y.append(o.combo_input);o.element_box.append(y);if(o.combo_input.attr("placeholder")){o.combo_input.attr("placeholder_bak",o.combo_input.attr("placeholder"))}}this.elem=o};h.prototype.setButtonAttrDefault=function(){if(this.option.dropButton){this.elem.button.attr("title",this.message.close_btn)}};h.prototype.setInitRecord=function(o){var l=this,s=l.option,n=l.elem,m="";if(g.type(n.combo_input.data("init"))!="undefined"){s.initRecord=String(n.combo_input.data("init"))}if(!o&&!s.initRecord&&n.combo_input.val()){s.initRecord=n.combo_input.val()}n.combo_input.val("");if(!o){n.hidden.val(s.initRecord)}m=o&&n.hidden.val()?n.hidden.val():s.initRecord;if(m){if(typeof s.data==="object"){var r=new Array();var q=m.split(",");g.each(q,function(p,u){for(var t=0;t1){r=[r[0]]}l.afterInit(l,r)}else{g.ajax({dataType:"json",type:"POST",url:s.data,data:{searchTable:s.dbTable,searchKey:s.keyField,searchValue:m},success:function(p){var t=null;if(s.eAjaxSuccess&&g.isFunction(s.eAjaxSuccess)){t=s.eAjaxSuccess(p)}l.afterInit(l,t.list)},error:function(p,u,t){l.ajaxErrorNotify(l,t)}})}}};h.prototype.afterInit=function(m,o){if(!o||(g.isArray(o)&&o.length===0)){return}if(!g.isArray(o)){o=[o]}var q=m.option,n=m.css_class;var l=function(t){var s=t[q.showField];if(q.formatItem&&g.isFunction(q.formatItem)){try{s=q.formatItem(t)}catch(p){}}return s};if(q.multiple){m.prop.init_set=true;m.clearAll(m);g.each(o,function(p,t){var s={text:l(t),value:t[q.keyField]};if(!m.isAlreadySelected(m,s)){m.addNewTag(m,s)}});m.tagValuesSet(m);m.inputResize(m);m.prop.init_set=false}else{var r=o[0];m.elem.combo_input.val(l(r));m.elem.hidden.val(r[q.keyField]);m.prop.prev_value=l(r);m.prop.selected_text=l(r);if(q.selectOnly){m.elem.combo_input.attr("title",m.message.select_ok).removeClass(n.select_ng).addClass(n.select_ok)}m.putClearButton()}};h.prototype.eDropdownButton=function(){var l=this;if(l.option.dropButton){l.elem.button.mouseup(function(m){m.stopPropagation();if(l.elem.result_area.is(":hidden")&&!l.elem.combo_input.prop("disabled")){l.elem.combo_input.focus()}else{l.hideResults(l)}})}};h.prototype.eInput=function(){var m=this,o=m.option,n=m.elem,q=m.message;var l=function(){m.prop.page_move=false;m.suggest(m);m.setCssFocusedInput(m)};n.combo_input.keyup(function(p){m.processKey(m,p)}).keydown(function(p){m.processControl(m,p)}).focus(function(p){if(n.result_area.is(":hidden")){p.stopPropagation();m.prop.first_show=true;l()}});n.container.on("click.SelectPage","div."+m.css_class.clear_btn,function(p){p.stopPropagation();if(!m.disabled(m)){m.clearAll(m);if(o.eClear&&g.isFunction(o.eClear)){o.eClear(m)}}});n.result_area.on("mousedown.SelectPage",function(p){p.stopPropagation()});if(o.multiple){if(o.multipleControlbar){n.control.find(".sp_select_all").on("click.SelectPage",function(p){m.selectAllLine(m)}).hover(function(){n.control_text.html(q.select_all)},function(){n.control_text.html("")});n.control.find(".sp_unselect_all").on("click.SelectPage",function(p){m.unSelectAllLine(m)}).hover(function(){n.control_text.html(q.unselect_all)},function(){n.control_text.html("")});n.control.find(".sp_clear_all").on("click.SelectPage",function(p){m.clearAll(m)}).hover(function(){n.control_text.html(q.clear_all)},function(){n.control_text.html("")})}n.element_box.on("click.SelectPage",function(r){var p=r.target||r.srcElement;if(g(p).is("ul")){n.combo_input.focus()}});n.element_box.on("click.SelectPage","span.tag_close",function(){var p=g(this).closest("li");m.removeTag(m,p);l();if(o.eTagRemove&&g.isFunction(o.eTagRemove)){o.eTagRemove(1,m)}});m.inputResize(m)}};h.prototype.eWhole=function(){var l=this,m=l.css_class;var n=function(o){o.elem.combo_input.val("");if(!o.option.multiple){o.elem.hidden.val("")}o.prop.selected_text=""};g(document.body).off("mousedown.selectPage").on("mousedown.selectPage",function(q){var p=q.target||q.srcElement;var o=g(p).closest("div."+m.container);g("div."+m.container+"."+m.container_open).each(function(){if(this==o[0]){return}var r=g(this),s=r.find("input."+m.input).data(h.dataKey);if(!s.elem.combo_input.val()&&s.elem.hidden.val()&&!s.option.multiple){s.prop.current_page=1;n(s);s.hideResults(s);return true}if(s.elem.results.find("li").not("."+m.message_box).size()){if(s.option.autoFillResult){if(s.elem.hidden.val()){s.hideResults(s)}else{if(s.elem.results.find("li.sp_over").size()){s.selectCurrentLine(s,true)}else{if(s.option.autoSelectFirst){s.nextLine(s);s.selectCurrentLine(s,true)}else{s.hideResults(s)}}}}else{s.hideResults(s)}}else{if(s.option.noResultClean){n(s)}else{if(!s.option.multiple){s.elem.hidden.val("")}}s.hideResults(s)}})})};h.prototype.eResultList=function(){var l=this,m=this.css_class;l.elem.results.children("li").hover(function(){if(l.prop.key_select){l.prop.key_select=false;return}if(!g(this).hasClass(m.selected)&&!g(this).hasClass(m.message_box)){g(this).addClass(m.select);l.setCssFocusedResults(l)}},function(){g(this).removeClass(m.select)}).click(function(n){if(l.prop.key_select){l.prop.key_select=false;return}n.preventDefault();n.stopPropagation();if(!g(this).hasClass(m.selected)){l.selectCurrentLine(l,false)}})};h.prototype.eScroll=function(){var l=this,m=this.css_class;g(window).on("scroll.SelectPage",function(n){g("div."+m.container+"."+m.container_open).each(function(){var v=g(this),u=v.find("input."+m.input).data(h.dataKey),t=u.elem.result_area.offset(),s=g(window).scrollTop(),x=g(document).height(),q=g(window).height(),p=u.elem.result_area.outerHeight(),o=t.top+p,r=x>q,w=u.elem.result_area.hasClass("shadowDown");if(r){if(w){if(o>(q+s)){u.calcResultsSize(u)}}else{if(t.top '+n+"
        • ";l.elem.results.empty().append(m).show();l.calcResultsSize(l);l.setOpenStatus(l,true);l.elem.control.hide();if(l.option.pagination){l.elem.navi.hide()}};h.prototype.scrollWindow=function(t,q){var l=t.getCurrentLine(t),s=(l&&!q)?l.offset().top:t.elem.container.offset().top,n;t.prop.size_li=t.elem.results.children("li:first").outerHeight();n=t.prop.size_li;var r,p=g(window).height(),o=g(window).scrollTop(),m=o+p-n;if(l.length){if(sp){r=s-o}else{if(s>m){r=s-m}else{return}}}else{if(s-1&&l.elem.result_area.is(":visible"))||(g.inArray(m.keyCode,[13,9])>-1&&l.getCurrentLine(l))){m.preventDefault();m.stopPropagation();m.cancelBubble=true;m.returnValue=false;switch(m.keyCode){case 37:if(m.shiftKey){l.firstPage(l)}else{l.prevPage(l)}break;case 38:l.prop.key_select=true;l.prevLine(l);break;case 39:if(m.shiftKey){l.lastPage(l)}else{l.nextPage(l)}break;case 40:if(l.elem.results.children("li").length){l.prop.key_select=true;l.nextLine(l)}else{l.suggest(l)}break;case 9:l.prop.key_paging=true;l.selectCurrentLine(l,true);break;case 13:l.selectCurrentLine(l,true);break;case 27:l.prop.key_paging=true;l.hideResults(l);break}}};h.prototype.abortAjax=function(l){if(l.prop.xhr){l.prop.xhr.abort();l.prop.xhr=false}};h.prototype.suggest=function(m){var n,o=g.trim(m.elem.combo_input.val());if(m.option.multiple){n=o}else{if(o&&o===m.prop.selected_text){n=""}else{n=o}}n=n.split(/[\s ]+/);if(m.option.eOpen&&g.isFunction(m.option.eOpen)){m.option.eOpen.call(m)}m.abortAjax(m);var l=m.prop.current_page||1;if(typeof m.option.data=="object"){m.searchForJson(m,n,l)}else{m.searchForDb(m,n,l)}};h.prototype.setLoading=function(l){if(l.elem.results.html()===""){l.setOpenStatus(l,true)}};h.prototype.searchForDb=function(t,q,s){var m=t.option;if(!m.eAjaxSuccess||!g.isFunction(m.eAjaxSuccess)){t.hideResults(t)}var n=m.params,r={},o=m.searchField;if(q.length&&q[0]&&q[0]!==t.prop.prev_value){s=1}var l={q_word:q,pageNumber:s,pageSize:m.pageSize,andOr:m.andOr,orderBy:m.orderBy,searchTable:m.dbTable};l[o]=q[0];if(n&&g.isFunction(n)){var u=n.call(t);if(u&&g.isPlainObject(u)){r=g.extend({},l,u)}else{r=l}}else{r=l}t.prop.xhr=g.ajax({dataType:"json",url:m.data,type:"POST",data:r,success:function(x){if(!x||!g.isPlainObject(x)){t.hideResults(t);t.ajaxErrorNotify(t,errorThrown);return}var y={},w={};try{y=m.eAjaxSuccess(x);w.originalResult=y.list;w.cnt_whole=y.totalRow}catch(z){t.showMessage(t,t.message.ajax_error);return}w.candidate=[];w.keyField=[];if(typeof w.originalResult!="object"){t.prop.xhr=null;t.notFoundSearch(t);return}w.cnt_page=w.originalResult.length;for(var v=0;v ');C.append('
        • ');C.append('
        • '+G()+"
        • ");C.append('
        • ');C.append('
        • ');C.show()}else{C.find("li.pageInfoBox a").html(G())}};var t=x.elem.navi.find("ul"),r=Math.ceil(v/x.option.pageSize);if(r===0){l=0}else{if(r1){x.ePaging()}};h.prototype.displayResults=function(A,z,s){var l=A.option,n=A.elem;n.results.hide().empty();if(l.multiple&&g.type(l.maxSelectLimit)==="number"&&l.maxSelectLimit>0){var q=n.element_box.find("li.selected_tag").size();if(q>0&&q>=l.maxSelectLimit){var o=A.message.max_selected;A.showMessage(A,o.replace(A.template.msg.maxSelectLimit,l.maxSelectLimit));return}}if(z.candidate.length){var y=z.candidate,w=z.keyField,m=n.hidden.val(),B=m?m.split(","):new Array(),v="";for(var r=0;r").html(v).attr({pkey:w[r]});if(!l.formatItem){t.attr("title",v)}if(g.inArray(w[r].toString(),B)!==-1){t.addClass(A.css_class.selected)}t.data("dataObj",z.originalResult[r]);n.results.append(t)}}else{var x='
        • '+A.message.not_found+"
        • ";n.results.append(x)}n.results.show();if(l.multiple&&l.multipleControlbar){n.control.show()}if(l.pagination){n.navi.show()}A.calcResultsSize(A);A.setOpenStatus(A,true);A.eResultList();A.eScroll();if(s&&z.candidate.length&&l.autoSelectFirst){A.nextLine(A)}};h.prototype.calcResultsSize=function(m){var q=m.option,n=m.elem;var l=function(){if(n.container.css("position")==="static"){var A=n.combo_input.offset();n.result_area.css({top:A.top+n.combo_input.outerHeight()+"px",left:A.left+"px"})}else{if(!q.pagination){var x=n.results.find("li:first").outerHeight(true),v=x*q.listSize;n.results.css({"max-height":v,"overflow-y":"auto"})}var B=g(document).width(),F=g(document).height(),w=g(window).height(),A=n.container.offset(),z=g(window).scrollTop(),E=n.result_area.outerWidth(),v=n.result_area.outerHeight(),r=A.left,p=n.container.outerHeight(),u=(A.left+E)>B?r-(E-n.container.outerWidth()):r,t=A.top,D=0,C=5,s=t+p+v+C,y=F>w;if((t-z-C>v)&&(y&&s>(w+z))||(!y&&s>w)){D=A.top-v-C;n.result_area.removeClass("shadowUp shadowDown").addClass("shadowUp")}else{D=A.top+(q.multiple?n.container.outerHeight():p);n.result_area.removeClass("shadowUp shadowDown").addClass("shadowDown");D+=C}return{top:D+"px",left:u+"px"}}};if(n.result_area.is(":visible")){n.result_area.css(l())}else{var o=l();n.result_area.css(o).show(1,function(){var p=l();if(o.top!==p.top||o.left!==p.left){n.result_area.css(p)}})}};h.prototype.hideResults=function(l){if(l.prop.key_paging){l.scrollWindow(l,true);l.prop.key_paging=false}l.setCssFocusedInput(l);if(l.option.autoFillResult){}l.elem.results.empty();l.elem.result_area.hide();l.setOpenStatus(l,false);g(window).off("scroll.SelectPage");l.abortAjax(l);l.setButtonAttrDefault()};h.prototype.disabled=function(l,n){var o=l.option,m=l.elem;if(g.type(n)==="undefined"){return m.combo_input.prop("disabled")}if(g.type(n)==="boolean"){m.combo_input.prop("disabled",n);if(n){m.container.addClass(l.css_class.disabled)}else{m.container.removeClass(l.css_class.disabled)}}};h.prototype.firstPage=function(l){if(l.prop.current_page>1){l.prop.current_page=1;l.prop.page_move=true;l.suggest(l)}};h.prototype.prevPage=function(l){if(l.prop.current_page>1){l.prop.current_page--;l.prop.page_move=true;l.suggest(l)}};h.prototype.nextPage=function(l){if(l.prop.current_page0&&n.maxSelectLimit===l.elem.element_box.find("li.selected_tag").size()){return false}});if(n.eSelect&&g.isFunction(n.eSelect)){n.eSelect(m,l)}l.afterAction(l)};h.prototype.unSelectAllLine=function(l){var n=l.option,m=l.elem.results.find("li").size();l.elem.results.find("li").each(function(q,r){var p=g(r).attr("pkey");var o=l.elem.element_box.find('li.selected_tag[itemvalue="'+p+'"]');l.removeTag(l,o)});l.afterAction(l);if(n.eTagRemove&&g.isFunction(n.eTagRemove)){n.eTagRemove(m,l)}};h.prototype.clearAll=function(l){var n=l.option,m=0;if(n.multiple){m=l.elem.element_box.find("li.selected_tag").size();l.elem.element_box.find("li.selected_tag").remove()}l.reset(l);l.afterAction(l);if(!n.multiple){l.elem.clear_btn.remove()}if(n.multiple){if(n.eTagRemove&&g.isFunction(n.eTagRemove)){n.eTagRemove(m,l)}}};h.prototype.reset=function(l){l.elem.combo_input.val("");l.elem.hidden.val("");l.prop.prev_value="";l.prop.selected_text="";l.prop.current_page=1};h.prototype.getCurrentLine=function(l){if(l.elem.result_area.is(":hidden")){return false}var m=l.elem.results.find("li."+l.css_class.select);if(m.size()){return m}else{return false}};h.prototype.isAlreadySelected=function(l,n){var o=false;if(n.value){var m=l.elem.hidden.val();if(m){var p=m.split(",");if(p&&p.length&&g.inArray(n.value,p)!=-1){o=true}}}return o};h.prototype.addNewTag=function(m,o){if(!m.option.multiple||!o){return}var n=m.template.tag.content,l;n=n.replace(m.template.tag.textKey,o.text);n=n.replace(m.template.tag.valueKey,o.value);l=g(n);if(m.elem.combo_input.prop("disabled")){l.find("span.tag_close").hide()}m.elem.combo_input.closest("li").before(l)};h.prototype.removeTag=function(l,q){var n=g(q).attr("itemvalue");var p=l.elem.hidden.val();if(g.type(n)!="undefined"&&p){var o=p.split(","),m=g.inArray(n.toString(),o);if(m!=-1){o.splice(m,1);l.elem.hidden.val(o.toString())}}g(q).remove();l.inputResize(l)};h.prototype.tagValuesSet=function(m){if(!m.option.multiple){return}var n=m.elem.element_box.find("li.selected_tag");if(n&&n.size()){var l=new Array();g.each(n,function(q,o){var p=g(o).attr("itemvalue");if(g.type(p)!=="undefined"){l.push(p)}});if(l.length){m.elem.hidden.val(l.join(","))}}};h.prototype.inputResize=function(l){if(!l.option.multiple){return}var o="",m=l.elem.combo_input.closest("li");var n=function(p,q){q.removeClass("full_width");var s=p.elem.combo_input.val().length+1,r=(s*0.75)+"em";p.elem.combo_input.css("width",r).removeAttr("placeholder")};if(l.elem.element_box.find("li.selected_tag").size()===0){if(l.elem.combo_input.attr("placeholder_bak")){if(!m.hasClass("full_width")){m.addClass("full_width")}l.elem.combo_input.attr("placeholder",l.elem.combo_input.attr("placeholder_bak")).removeAttr("style")}else{n(l,m)}}else{n(l,m)}};h.prototype.nextLine=function(m){var o=m.getCurrentLine(m),l;if(!o){l=-1}else{l=m.elem.results.children("li").index(o);o.removeClass(m.css_class.select)}l++;if(l-1){var n=m.elem.results.children("li").eq(l);n.addClass(m.css_class.select);m.setCssFocusedResults(m)}else{m.setCssFocusedInput(m)}m.scrollWindow(m,false)};function j(l){return this.each(function(){var n=g(this),m=n.data(h.dataKey),o=g.extend({},e,n.data(),m&&m.option,typeof l==="object"&&l);if(!m){n.data(h.dataKey,(m=new h(this,o)))}})}function a(l){return g(l).closest("div.sp_container").find("input.sp_input")}function b(){return this.each(function(){var m=a(this),l=m.data(h.dataKey);if(l){l.prop.init_set=true;l.clearAll(l);l.prop.init_set=false}})}function f(){return this.each(function(){var m=a(this),l=m.data(h.dataKey);if(l&&l.elem.hidden.val()){l.setInitRecord(true)}})}function c(l){return this.each(function(){if(l&&g.isArray(l)){var n=a(this),m=n.data(h.dataKey);if(m){m.clearAll(m);m.option.data=l}}})}function k(m){var l=false;this.each(function(){var o=a(this),n=o.data(h.dataKey);if(n){if(g.type(m)!=="undefined"){n.disabled(n,m)}else{l=n.disabled(n)}}});return l}function i(){var l="";this.each(function(){var o=a(this),n=o.data(h.dataKey);if(n){if(n.option.multiple){var m=[];n.elem.element_box.find("li.selected_tag").each(function(q,p){m.push(g(p).text())});l+=m.toString()}else{l+=n.elem.combo_input.val()}}});return l}var d=g.fn.selectPage;g.fn.selectPage=j;g.fn.selectPage.Constructor=h;g.fn.selectPageClear=b;g.fn.selectPageRefresh=f;g.fn.selectPageData=c;g.fn.selectPageDisabled=k;g.fn.selectPageText=i;g.fn.selectPage.noConflict=function(){g.fn.selectPage=d;return this}})(window.jQuery); \ No newline at end of file +(function(g){var e={data:undefined,lang:"cn",multiple:false,pagination:true,dropButton:true,listSize:10,multipleControlbar:true,maxSelectLimit:0,selectToCloseList:false,initRecord:undefined,dbTable:"tbl",keyField:"id",showField:"name",searchField:undefined,andOr:"AND",orderBy:false,pageSize:10,params:undefined,formatItem:undefined,autoFillResult:false,autoSelectFirst:false,noResultClean:true,selectOnly:false,inputDelay:0.5,eSelect:undefined,eOpen:undefined,eAjaxSuccess:undefined,eTagRemove:undefined,eClear:undefined};var h=function(l,m){this.setOption(m);this.setLanguage();this.setCssClass();this.setProp();this.setElem(l);this.setButtonAttrDefault();this.setInitRecord();this.eDropdownButton();this.eInput();this.eWhole()};h.version="2.19";h.dataKey="selectPageObject";h.prototype.setOption=function(n){n.searchField=n.searchField||n.showField;n.andOr=n.andOr.toUpperCase();if(n.andOr!=="AND"&&n.andOr!=="OR"){n.andOr="AND"}var l=["searchField"];for(var m=0;m#item_text#',textKey:"#item_text#",valueKey:"#item_value#"},page:{current:"page_num",total:"page_count"},msg:{maxSelectLimit:"max_selected_limit"}}};h.prototype.elementRealSize=function(q,l){var p={absolute:false,clone:false,includeMargin:false,display:"block"};var t=p,o=q.eq(0),s,u,r=[],n="",m;s=function(){m=o.parents().addBack().filter(":hidden");n+="visibility: hidden !important; display: "+t.display+" !important; ";if(t.absolute===true){n+="position: absolute !important;"}m.each(function(){var w=g(this),x=w.attr("style");r.push(x);w.attr("style",x?x+";"+n:n)})};u=function(){m.each(function(w){var y=g(this),x=r[w];if(x===undefined){y.removeAttr("style")}else{y.attr("style",x)}})};s();var v=/(outer)/.test(l)?o[l](t.includeMargin):o[l]();u();return v};h.prototype.setElem=function(q){var o={},m=this.option,u=this.css_class,n=this.message,x=g(q);var s=x.outerWidth();if(s<=0){s=this.elementRealSize(x,"outerWidth")}if(s<150){s=150}o.combo_input=x.attr({"autocomplete":"off"}).addClass(u.input).wrap("
          ");if(m.selectOnly){o.combo_input.prop("readonly",true)}o.container=o.combo_input.parent().addClass(u.container);if(o.combo_input.prop("disabled")){if(m.multiple){o.container.addClass(u.disabled)}else{o.combo_input.addClass(u.input_off)}}o.container.width(s);o.button=g("
          ").addClass(u.button);o.dropdown=g('');o.clear_btn=g("
          ").html(g("").addClass("sp-iconfont if-close")).addClass(u.clear_btn).attr("title",n.clear);if(!m.dropButton){o.clear_btn.addClass(u.align_right)}o.element_box=g("
            ").addClass(u.element_box);if(m.multiple&&m.multipleControlbar){o.control=g("
            ").addClass(u.control_box)}o.result_area=g("
            ").addClass(u.re_area);if(m.pagination){o.navi=g("
            ").addClass("sp_pagination").append("
              ")}o.results=g("
                ").addClass(u.results);var l="_text",w=o.combo_input.attr("id")||o.combo_input.attr("name"),t=o.combo_input.attr("name")||"selectPage",v=t,r=w;o.hidden=g('').attr({name:v,id:r}).val("");o.combo_input.attr({name:t+l,id:w+l});o.container.append(o.hidden);if(m.dropButton){o.container.append(o.button);o.button.append(o.dropdown)}g(document.body).append(o.result_area);o.result_area.append(o.results);if(m.pagination){o.result_area.append(o.navi)}if(m.multiple){if(m.multipleControlbar){o.control.append('');o.control.append('');o.control.append('');o.control_text=g("

                ");o.control.append(o.control_text);o.result_area.prepend(o.control)}o.container.addClass("sp_container_combo");o.combo_input.addClass("sp_combo_input").before(o.element_box);var y=g("

              • ").addClass("input_box");y.append(o.combo_input);o.element_box.append(y);if(o.combo_input.attr("placeholder")){o.combo_input.attr("placeholder_bak",o.combo_input.attr("placeholder"))}}this.elem=o};h.prototype.setButtonAttrDefault=function(){if(this.option.dropButton){this.elem.button.attr("title",this.message.close_btn)}};h.prototype.setInitRecord=function(o){var l=this,s=l.option,n=l.elem,m="";if(g.type(n.combo_input.data("init"))!="undefined"){s.initRecord=String(n.combo_input.data("init"))}if(!o&&!s.initRecord&&n.combo_input.val()){s.initRecord=n.combo_input.val()}n.combo_input.val("");if(!o){n.hidden.val(s.initRecord)}m=o&&n.hidden.val()?n.hidden.val():s.initRecord;if(m){if(typeof s.data==="object"){var r=new Array();var q=m.split(",");g.each(q,function(p,u){for(var t=0;t1){r=[r[0]]}l.afterInit(l,r)}else{g.ajax({dataType:"json",type:"POST",url:s.data,data:{searchTable:s.dbTable,searchKey:s.keyField,searchValue:m},success:function(p){var t=null;if(s.eAjaxSuccess&&g.isFunction(s.eAjaxSuccess)){t=s.eAjaxSuccess(p)}l.afterInit(l,t.list)},error:function(p,u,t){l.ajaxErrorNotify(l,t)}})}}};h.prototype.afterInit=function(m,o){if(!o||(g.isArray(o)&&o.length===0)){return}if(!g.isArray(o)){o=[o]}var q=m.option,n=m.css_class;var l=function(t){var s=t[q.showField];if(q.formatItem&&g.isFunction(q.formatItem)){try{s=q.formatItem(t)}catch(p){}}return s};if(q.multiple){m.prop.init_set=true;m.clearAll(m);g.each(o,function(p,t){var s={text:l(t),value:t[q.keyField]};if(!m.isAlreadySelected(m,s)){m.addNewTag(m,t,s)}});m.tagValuesSet(m);m.inputResize(m);m.prop.init_set=false}else{var r=o[0];m.elem.combo_input.val(l(r));m.elem.hidden.val(r[q.keyField]);m.prop.prev_value=l(r);m.prop.selected_text=l(r);if(q.selectOnly){m.elem.combo_input.attr("title",m.message.select_ok).removeClass(n.select_ng).addClass(n.select_ok)}m.putClearButton()}};h.prototype.eDropdownButton=function(){var l=this;if(l.option.dropButton){l.elem.button.mouseup(function(m){m.stopPropagation();if(l.elem.result_area.is(":hidden")&&!l.elem.combo_input.prop("disabled")){l.elem.combo_input.focus()}else{l.hideResults(l)}})}};h.prototype.eInput=function(){var m=this,o=m.option,n=m.elem,q=m.message;var l=function(){m.prop.page_move=false;m.suggest(m);m.setCssFocusedInput(m)};n.combo_input.keyup(function(p){m.processKey(m,p)}).keydown(function(p){m.processControl(m,p)}).focus(function(p){if(n.result_area.is(":hidden")){p.stopPropagation();m.prop.first_show=true;l()}});n.container.on("click.SelectPage","div."+m.css_class.clear_btn,function(p){p.stopPropagation();if(!m.disabled(m)){m.clearAll(m,true);if(o.eClear&&g.isFunction(o.eClear)){o.eClear(m)}}});n.result_area.on("mousedown.SelectPage",function(p){p.stopPropagation()});if(o.multiple){if(o.multipleControlbar){n.control.find(".sp_select_all").on("click.SelectPage",function(p){m.selectAllLine(m)}).hover(function(){n.control_text.html(q.select_all)},function(){n.control_text.html("")});n.control.find(".sp_unselect_all").on("click.SelectPage",function(p){m.unSelectAllLine(m)}).hover(function(){n.control_text.html(q.unselect_all)},function(){n.control_text.html("")});n.control.find(".sp_clear_all").on("click.SelectPage",function(p){m.clearAll(m,true)}).hover(function(){n.control_text.html(q.clear_all)},function(){n.control_text.html("")})}n.element_box.on("click.SelectPage",function(r){var p=r.target||r.srcElement;if(g(p).is("ul")){n.combo_input.focus()}});n.element_box.on("click.SelectPage","span.tag_close",function(){var p=g(this).closest("li"),r=p.data("dataObj");m.removeTag(m,p);l();if(o.eTagRemove&&g.isFunction(o.eTagRemove)){o.eTagRemove([r])}});m.inputResize(m)}};h.prototype.eWhole=function(){var l=this,m=l.css_class;var n=function(o){o.elem.combo_input.val("");if(!o.option.multiple){o.elem.hidden.val("")}o.prop.selected_text=""};g(document.body).off("mousedown.selectPage").on("mousedown.selectPage",function(q){var p=q.target||q.srcElement;var o=g(p).closest("div."+m.container);g("div."+m.container+"."+m.container_open).each(function(){if(this==o[0]){return}var r=g(this),s=r.find("input."+m.input).data(h.dataKey);if(!s.elem.combo_input.val()&&s.elem.hidden.val()&&!s.option.multiple){s.prop.current_page=1;n(s);s.hideResults(s);return true}if(s.elem.results.find("li").not("."+m.message_box).length){if(s.option.autoFillResult){if(s.elem.hidden.val()){s.hideResults(s)}else{if(s.elem.results.find("li.sp_over").length){s.selectCurrentLine(s,true)}else{if(s.option.autoSelectFirst){s.nextLine(s);s.selectCurrentLine(s,true)}else{s.hideResults(s)}}}}else{s.hideResults(s)}}else{if(s.option.noResultClean){n(s)}else{if(!s.option.multiple){s.elem.hidden.val("")}}s.hideResults(s)}})})};h.prototype.eResultList=function(){var l=this,m=this.css_class;l.elem.results.children("li").hover(function(){if(l.prop.key_select){l.prop.key_select=false;return}if(!g(this).hasClass(m.selected)&&!g(this).hasClass(m.message_box)){g(this).addClass(m.select);l.setCssFocusedResults(l)}},function(){g(this).removeClass(m.select)}).click(function(n){if(l.prop.key_select){l.prop.key_select=false;return}n.preventDefault();n.stopPropagation();if(!g(this).hasClass(m.selected)){l.selectCurrentLine(l,false)}})};h.prototype.eScroll=function(){var l=this,m=this.css_class;g(window).on("scroll.SelectPage",function(n){g("div."+m.container+"."+m.container_open).each(function(){var v=g(this),u=v.find("input."+m.input).data(h.dataKey),t=u.elem.result_area.offset(),s=g(window).scrollTop(),x=g(document).height(),q=g(window).height(),p=u.elem.result_area.outerHeight(),o=t.top+p,r=x>q,w=u.elem.result_area.hasClass("shadowDown");if(r){if(w){if(o>(q+s)){u.calcResultsSize(u)}}else{if(t.top '+n+"
              • ";l.elem.results.empty().append(m).show();l.calcResultsSize(l);l.setOpenStatus(l,true);l.elem.control.hide();if(l.option.pagination){l.elem.navi.hide()}};h.prototype.scrollWindow=function(t,q){var l=t.getCurrentLine(t),s=(l&&!q)?l.offset().top:t.elem.container.offset().top,n;t.prop.size_li=t.elem.results.children("li:first").outerHeight();n=t.prop.size_li;var r,p=g(window).height(),o=g(window).scrollTop(),m=o+p-n;if(l.length){if(sp){r=s-o}else{if(s>m){r=s-m}else{return}}}else{if(s-1&&l.elem.result_area.is(":visible"))||(g.inArray(m.keyCode,[13,9])>-1&&l.getCurrentLine(l))){m.preventDefault();m.stopPropagation();m.cancelBubble=true;m.returnValue=false;switch(m.keyCode){case 37:if(m.shiftKey){l.firstPage(l)}else{l.prevPage(l)}break;case 38:l.prop.key_select=true;l.prevLine(l);break;case 39:if(m.shiftKey){l.lastPage(l)}else{l.nextPage(l)}break;case 40:if(l.elem.results.children("li").length){l.prop.key_select=true;l.nextLine(l)}else{l.suggest(l)}break;case 9:l.prop.key_paging=true;l.selectCurrentLine(l,true);break;case 13:l.selectCurrentLine(l,true);break;case 27:l.prop.key_paging=true;l.hideResults(l);break}}};h.prototype.abortAjax=function(l){if(l.prop.xhr){l.prop.xhr.abort();l.prop.xhr=false}};h.prototype.suggest=function(m){var n,o=g.trim(m.elem.combo_input.val());if(m.option.multiple){n=o}else{if(o&&o===m.prop.selected_text){n=""}else{n=o}}n=n.split(/[\s ]+/);if(m.option.eOpen&&g.isFunction(m.option.eOpen)){m.option.eOpen.call(m)}m.abortAjax(m);var l=m.prop.current_page||1;if(typeof m.option.data=="object"){m.searchForJson(m,n,l)}else{m.searchForDb(m,n,l)}};h.prototype.setLoading=function(l){if(l.elem.results.html()===""){l.setOpenStatus(l,true)}};h.prototype.searchForDb=function(t,q,s){var m=t.option;if(!m.eAjaxSuccess||!g.isFunction(m.eAjaxSuccess)){t.hideResults(t)}var n=m.params,r={},o=m.searchField;if(q.length&&q[0]&&q[0]!==t.prop.prev_value){s=1}var l={q_word:q,pageNumber:s,pageSize:m.pageSize,andOr:m.andOr,searchTable:m.dbTable};if(m.orderBy!==false){l.orderBy=m.orderBy}l[o]=q[0];if(n&&g.isFunction(n)){var u=n.call(t);if(u&&g.isPlainObject(u)){r=g.extend({},l,u)}else{r=l}}else{r=l}t.prop.xhr=g.ajax({dataType:"json",url:m.data,type:"POST",data:r,success:function(x){if(!x||!g.isPlainObject(x)){t.hideResults(t);t.ajaxErrorNotify(t,errorThrown);return}var y={},w={};try{y=m.eAjaxSuccess(x);w.originalResult=y.list;w.cnt_whole=y.totalRow}catch(z){t.showMessage(t,t.message.ajax_error);return}w.candidate=[];w.keyField=[];if(typeof w.originalResult!="object"){t.prop.xhr=null;t.notFoundSearch(t);return}w.cnt_page=w.originalResult.length;for(var v=0;v ');C.append('
              • ');C.append('
              • '+G()+"
              • ");C.append('
              • ');C.append('
              • ');C.show()}else{C.find("li.pageInfoBox a").html(G())}};var t=x.elem.navi.find("ul"),r=Math.ceil(v/x.option.pageSize);if(r===0){l=0}else{if(r1){x.ePaging()}};h.prototype.displayResults=function(A,z,s){var l=A.option,n=A.elem;n.results.hide().empty();if(l.multiple&&g.type(l.maxSelectLimit)==="number"&&l.maxSelectLimit>0){var q=n.element_box.find("li.selected_tag").length;if(q>0&&q>=l.maxSelectLimit){var o=A.message.max_selected;A.showMessage(A,o.replace(A.template.msg.maxSelectLimit,l.maxSelectLimit));return}}if(z.candidate.length){var y=z.candidate,w=z.keyField,m=n.hidden.val(),B=m?m.split(","):new Array(),v="";for(var r=0;r").html(v).attr({pkey:w[r]});if(!l.formatItem){t.attr("title",v)}if(g.inArray(w[r].toString(),B)!==-1){t.addClass(A.css_class.selected)}t.data("dataObj",z.originalResult[r]);n.results.append(t)}}else{var x='
              • '+A.message.not_found+"
              • ";n.results.append(x)}n.results.show();if(l.multiple&&l.multipleControlbar){n.control.show()}if(l.pagination){n.navi.show()}A.calcResultsSize(A);A.setOpenStatus(A,true);A.eResultList();A.eScroll();if(s&&z.candidate.length&&l.autoSelectFirst){A.nextLine(A)}};h.prototype.calcResultsSize=function(m){var q=m.option,n=m.elem;var l=function(){if(n.container.css("position")==="static"){var A=n.combo_input.offset();n.result_area.css({top:A.top+n.combo_input.outerHeight()+"px",left:A.left+"px"})}else{if(!q.pagination){var x=n.results.find("li:first").outerHeight(true),v=x*q.listSize;n.results.css({"max-height":v,"overflow-y":"auto"})}var B=g(document).width(),F=g(document).height(),w=g(window).height(),A=n.container.offset(),z=g(window).scrollTop(),E=n.result_area.outerWidth(),v=n.result_area.outerHeight(),r=A.left,p=n.container.outerHeight(),u=(A.left+E)>B?r-(E-n.container.outerWidth()):r,t=A.top,D=0,C=5,s=t+p+v+C,y=F>w;if((t-z-C>v)&&(y&&s>(w+z))||(!y&&s>w)){D=A.top-v-C;n.result_area.removeClass("shadowUp shadowDown").addClass("shadowUp")}else{D=A.top+(q.multiple?n.container.outerHeight():p);n.result_area.removeClass("shadowUp shadowDown").addClass("shadowDown");D+=C}return{top:D+"px",left:u+"px"}}};if(n.result_area.is(":visible")){n.result_area.css(l())}else{var o=l();n.result_area.css(o).show(1,function(){var p=l();if(o.top!==p.top||o.left!==p.left){n.result_area.css(p)}})}};h.prototype.hideResults=function(l){if(l.prop.key_paging){l.scrollWindow(l,true);l.prop.key_paging=false}l.setCssFocusedInput(l);if(l.option.autoFillResult){}l.elem.results.empty();l.elem.result_area.hide();l.setOpenStatus(l,false);g(window).off("scroll.SelectPage");l.abortAjax(l);l.setButtonAttrDefault()};h.prototype.disabled=function(l,n){var o=l.option,m=l.elem;if(g.type(n)==="undefined"){return m.combo_input.prop("disabled")}if(g.type(n)==="boolean"){m.combo_input.prop("disabled",n);if(n){m.container.addClass(l.css_class.disabled)}else{m.container.removeClass(l.css_class.disabled)}}};h.prototype.firstPage=function(l){if(l.prop.current_page>1){l.prop.current_page=1;l.prop.page_move=true;l.suggest(l)}};h.prototype.prevPage=function(l){if(l.prop.current_page>1){l.prop.current_page--;l.prop.page_move=true;l.suggest(l)}};h.prototype.nextPage=function(l){if(l.prop.current_page0&&n.maxSelectLimit===l.elem.element_box.find("li.selected_tag").length){return false}});if(n.eSelect&&g.isFunction(n.eSelect)){n.eSelect(m,l)}l.afterAction(l,true)};h.prototype.unSelectAllLine=function(l){var o=l.option,m=l.elem.results.find("li").length,n=[];l.elem.results.find("li").each(function(r,s){var q=g(s).attr("pkey");var p=l.elem.element_box.find('li.selected_tag[itemvalue="'+q+'"]');if(p.length){n.push(p.data("dataObj"))}l.removeTag(l,p)});l.afterAction(l,true);if(o.eTagRemove&&g.isFunction(o.eTagRemove)){o.eTagRemove(n)}};h.prototype.clearAll=function(l,m){var o=l.option,n=[];if(o.multiple){l.elem.element_box.find("li.selected_tag").each(function(p,q){n.push(g(q).data("dataObj"));q.remove()});l.elem.element_box.find("li.selected_tag").remove()}l.reset(l);l.afterAction(l,m);if(o.multiple){if(o.eTagRemove&&g.isFunction(o.eTagRemove)){o.eTagRemove(n)}}else{l.elem.clear_btn.remove()}};h.prototype.reset=function(l){l.elem.combo_input.val("");l.elem.hidden.val("");l.prop.prev_value="";l.prop.selected_text="";l.prop.current_page=1};h.prototype.getCurrentLine=function(l){if(l.elem.result_area.is(":hidden")){return false}var m=l.elem.results.find("li."+l.css_class.select);if(m.length){return m}else{return false}};h.prototype.isAlreadySelected=function(l,n){var o=false;if(n.value){var m=l.elem.hidden.val();if(m){var p=m.split(",");if(p&&p.length&&g.inArray(n.value,p)!=-1){o=true}}}return o};h.prototype.addNewTag=function(m,p,o){if(!m.option.multiple||!p||!o){return}var n=m.template.tag.content,l;n=n.replace(m.template.tag.textKey,o.text);n=n.replace(m.template.tag.valueKey,o.value);l=g(n);l.data("dataObj",p);if(m.elem.combo_input.prop("disabled")){l.find("span.tag_close").hide()}m.elem.combo_input.closest("li").before(l)};h.prototype.removeTag=function(l,q){var n=g(q).attr("itemvalue");var p=l.elem.hidden.val();if(g.type(n)!="undefined"&&p){var o=p.split(","),m=g.inArray(n.toString(),o);if(m!=-1){o.splice(m,1);l.elem.hidden.val(o.toString())}}g(q).remove();l.inputResize(l)};h.prototype.tagValuesSet=function(m){if(!m.option.multiple){return}var n=m.elem.element_box.find("li.selected_tag");if(n&&n.length){var l=new Array();g.each(n,function(q,o){var p=g(o).attr("itemvalue");if(g.type(p)!=="undefined"){l.push(p)}});if(l.length){m.elem.hidden.val(l.join(","))}}};h.prototype.inputResize=function(l){if(!l.option.multiple){return}var o="",m=l.elem.combo_input.closest("li");var n=function(p,q){q.removeClass("full_width");var s=p.elem.combo_input.val().length+1,r=(s*0.75)+"em";p.elem.combo_input.css("width",r).removeAttr("placeholder")};if(l.elem.element_box.find("li.selected_tag").length===0){if(l.elem.combo_input.attr("placeholder_bak")){if(!m.hasClass("full_width")){m.addClass("full_width")}l.elem.combo_input.attr("placeholder",l.elem.combo_input.attr("placeholder_bak")).removeAttr("style")}else{n(l,m)}}else{n(l,m)}};h.prototype.nextLine=function(m){var o=m.getCurrentLine(m),l;if(!o){l=-1}else{l=m.elem.results.children("li").index(o);o.removeClass(m.css_class.select)}l++;if(l-1){var n=m.elem.results.children("li").eq(l);n.addClass(m.css_class.select);m.setCssFocusedResults(m)}else{m.setCssFocusedInput(m)}m.scrollWindow(m,false)};function j(l){return this.each(function(){var n=g(this),m=n.data(h.dataKey),o=g.extend({},e,n.data(),m&&m.option,typeof l==="object"&&l);if(!m){n.data(h.dataKey,(m=new h(this,o)))}})}function a(l){return g(l).closest("div.sp_container").find("input.sp_input")}function b(){return this.each(function(){var m=a(this),l=m.data(h.dataKey);if(l){l.prop.init_set=true;l.clearAll(l);l.prop.init_set=false}})}function f(){return this.each(function(){var m=a(this),l=m.data(h.dataKey);if(l&&l.elem.hidden.val()){l.setInitRecord(true)}})}function c(l){return this.each(function(){if(l&&g.isArray(l)){var n=a(this),m=n.data(h.dataKey);if(m){m.clearAll(m);m.option.data=l}}})}function k(m){var l=false;this.each(function(){var o=a(this),n=o.data(h.dataKey);if(n){if(g.type(m)!=="undefined"){n.disabled(n,m)}else{l=n.disabled(n)}}});return l}function i(){var l="";this.each(function(){var o=a(this),n=o.data(h.dataKey);if(n){if(n.option.multiple){var m=[];n.elem.element_box.find("li.selected_tag").each(function(q,p){m.push(g(p).text())});l+=m.toString()}else{l+=n.elem.combo_input.val()}}});return l}var d=g.fn.selectPage;g.fn.selectPage=j;g.fn.selectPage.Constructor=h;g.fn.selectPageClear=b;g.fn.selectPageRefresh=f;g.fn.selectPageData=c;g.fn.selectPageDisabled=k;g.fn.selectPageText=i;g.fn.selectPage.noConflict=function(){g.fn.selectPage=d;return this}})(window.jQuery); \ No newline at end of file