| @@ -59,7 +59,7 @@ | |||||
| | | ||||
| <span id='fuzzy_search_lpr_msg' style="font-size:28px;color:red;"></span> | <span id='fuzzy_search_lpr_msg' style="font-size:28px;color:red;"></span> | ||||
| | | ||||
| <button type="submit" class="btn btn-large btn-success pull-right" style="font-size:28px;">搜尋車牌</button> | |||||
| <!--button type="submit" class="btn btn-large btn-success pull-right" style="font-size:28px;">搜尋車牌</button--> | |||||
| </form> | </form> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -393,16 +393,36 @@ $(document).ready(function() | |||||
| } | } | ||||
| $("#carin_query_tbody").html(tmp_str_array.join('')); | $("#carin_query_tbody").html(tmp_str_array.join('')); | ||||
| $("#carin_query_list").show(); | $("#carin_query_list").show(); | ||||
| // 若只找到一台, 直接跳到結果頁 | |||||
| if(idx == 0) | |||||
| { | |||||
| check_lpr(0); | |||||
| } | |||||
| } | } | ||||
| }); | }); | ||||
| }); | }); | ||||
| // Custom: altob-keyaction | |||||
| // ******************** | |||||
| $.extend($.keyboard.keyaction, { | |||||
| accept : function(base) { | |||||
| base.close(true); // same as base.accept(); | |||||
| // 直接 submit | |||||
| $( "#fuzzy_search_lpr" ).submit(); | |||||
| return false; // return false prevents further processing | |||||
| } | |||||
| }); | |||||
| // Custom: altob-input | // Custom: altob-input | ||||
| // ******************** | // ******************** | ||||
| $('#fuzzy_input').keyboard({ | $('#fuzzy_input').keyboard({ | ||||
| usePreview: false, | |||||
| css : { | css : { | ||||
| // input & preview styles | // input & preview styles | ||||
| input : 'ui-widget-content ui-corner-all', | input : 'ui-widget-content ui-corner-all', | ||||
| @@ -417,6 +437,17 @@ $(document).ready(function() | |||||
| // used when disabling the decimal button {dec} when a decimal exists in the input area | // used when disabling the decimal button {dec} when a decimal exists in the input area | ||||
| buttonDisabled : 'ui-state-disabled' | buttonDisabled : 'ui-state-disabled' | ||||
| }, | }, | ||||
| position : { | |||||
| // null (attach to input/textarea) or a jQuery object (attach elsewhere) | |||||
| of : null, | |||||
| my : 'center top', | |||||
| at : 'center top', | |||||
| // at2 is used when "usePreview" is false (centers keyboard at the bottom | |||||
| // of the input/textarea) | |||||
| at2: 'center bottom', | |||||
| collision: 'flipfit flipfit' | |||||
| }, | |||||
| display: { | display: { | ||||
| 'bksp' : '\u2190', | 'bksp' : '\u2190', | ||||
| @@ -437,7 +468,10 @@ $(document).ready(function() | |||||
| } | } | ||||
| }); | |||||
| }).addTyping({ | |||||
| showTyping: true, | |||||
| delay: 250 | |||||
| }); | |||||
| // 定時自動更新頁面 | // 定時自動更新頁面 | ||||
| (function autoReloadPage(){ | (function autoReloadPage(){ | ||||
| @@ -59,7 +59,7 @@ | |||||
| | | ||||
| <span id='fuzzy_search_lpr_msg' style="font-size:28px;color:red;"></span> | <span id='fuzzy_search_lpr_msg' style="font-size:28px;color:red;"></span> | ||||
| | | ||||
| <button type="submit" class="btn btn-large btn-success pull-right" style="font-size:28px;">搜尋車牌</button> | |||||
| <!--button type="submit" class="btn btn-large btn-success pull-right" style="font-size:28px;">搜尋車牌</button--> | |||||
| </form> | </form> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -425,16 +425,36 @@ $(document).ready(function() | |||||
| } | } | ||||
| $("#carin_query_tbody").html(tmp_str_array.join('')); | $("#carin_query_tbody").html(tmp_str_array.join('')); | ||||
| $("#carin_query_list").show(); | $("#carin_query_list").show(); | ||||
| // 若只找到一台, 直接跳到結果頁 | |||||
| if(idx == 0) | |||||
| { | |||||
| check_lpr(0); | |||||
| } | |||||
| } | } | ||||
| }); | }); | ||||
| }); | }); | ||||
| // Custom: altob-keyaction | |||||
| // ******************** | |||||
| $.extend($.keyboard.keyaction, { | |||||
| accept : function(base) { | |||||
| base.close(true); // same as base.accept(); | |||||
| // 直接 submit | |||||
| $( "#fuzzy_search_lpr" ).submit(); | |||||
| return false; // return false prevents further processing | |||||
| } | |||||
| }); | |||||
| // Custom: altob-input | // Custom: altob-input | ||||
| // ******************** | // ******************** | ||||
| $('#fuzzy_input').keyboard({ | $('#fuzzy_input').keyboard({ | ||||
| usePreview: false, | |||||
| css : { | css : { | ||||
| // input & preview styles | // input & preview styles | ||||
| input : 'ui-widget-content ui-corner-all', | input : 'ui-widget-content ui-corner-all', | ||||
| @@ -449,6 +469,17 @@ $(document).ready(function() | |||||
| // used when disabling the decimal button {dec} when a decimal exists in the input area | // used when disabling the decimal button {dec} when a decimal exists in the input area | ||||
| buttonDisabled : 'ui-state-disabled' | buttonDisabled : 'ui-state-disabled' | ||||
| }, | }, | ||||
| position : { | |||||
| // null (attach to input/textarea) or a jQuery object (attach elsewhere) | |||||
| of : null, | |||||
| my : 'center top', | |||||
| at : 'center top', | |||||
| // at2 is used when "usePreview" is false (centers keyboard at the bottom | |||||
| // of the input/textarea) | |||||
| at2: 'center bottom', | |||||
| collision: 'flipfit flipfit' | |||||
| }, | |||||
| display: { | display: { | ||||
| 'bksp' : '\u2190', | 'bksp' : '\u2190', | ||||
| @@ -469,7 +500,10 @@ $(document).ready(function() | |||||
| } | } | ||||
| }); | |||||
| }).addTyping({ | |||||
| showTyping: true, | |||||
| delay: 250 | |||||
| }); | |||||
| // 定時自動更新頁面 | // 定時自動更新頁面 | ||||
| (function autoReloadPage(){ | (function autoReloadPage(){ | ||||