<commit_before>/**
 * Created by liumengjun on 1/12/16.
 */

$(function(){
    var defaultErrMsg = '请求失败,请稍后重试,或联系管理员!';

    $('form[name=query_form]').on('submit', function(e){
        var phone = $.trim($(this).find('input[name=phone]').val());
        if (phone != 'None') {
            if (phone && (!/^\d+$/.test(phone) || phone.length > 11)) {
                alert('手机号格式错误');
                return false;
            }
        }
        return true;
    });

    $('form[name=query_form]').submit(function(){
        var dateFrom = $('input[name=dateFrom]').val(), dateTo = $('input[name=dateTo]').val();
        if (dateFrom && dateTo && dateFrom>dateTo) {
            alert("请确保截止查询日期大于等于开始日期");
            return false;
        }
    });

    $('input.datetimeInput').datetimepicker({
      format: 'YYYY-MM-DD',
      locale: 'zh-cn'
  });
<commit_msg>BE-21 bug fixed.<commit_after>/**
 * Created by liumengjun on 1/12/16.
 */

$(function(){
    var defaultErrMsg = '请求失败,请稍后重试,或联系管理员!';

    $('form[name=query_form]').on('submit', function(e){
        var phone = $.trim($(this).find('input[name=phone]').val());
        if (phone != 'None') {
            if (phone && (!/^\d+$/.test(phone) || phone.length > 11)) {
                alert('手机号格式错误');
                return false;
            }
        }
        var dateFrom = $('input[name=dateFrom]').val(), dateTo = $('input[name=dateTo]').val();
        if (dateFrom && dateTo && dateFrom>dateTo) {
            alert("请确保截止查询日期大于等于开始日期");
            return false;
        }
        return true;
    });

    $('input.datetimeInput').datetimepicker({
      format: 'YYYY-MM-DD',
      locale: 'zh-cn'
  });

{'fraction_non_alphanumeric': 0.20500595947556616, 'fraction_numerical': 0.009535160905840286, 'mean_word_length': 2.1619585687382297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5615992', 'n_tokens_mistral': 615, 'n_tokens_neox': 612, 'n_words': 93}