$.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, {
|
_title: function(title) {
|
var $title = this.options.title || ' '
|
if( ("title_html" in this.options) && this.options.title_html == true )
|
title.html($title);
|
else title.text($title);
|
}
|
}));
|
|
(function() {
|
window.ISIE = ("ActiveXObject" in window);
|
})()
|
|
function getpath(){return '';}
|
|
$(function() {
|
if (typeof I != 'undefined' && I.keyword) {
|
I.keyword.on(ISIE ? 'keydown' : 'keyup', function (event) {
|
if (event.keyCode == 13) {
|
$(this).select();
|
}
|
});
|
I.keyword.focus(function() {
|
$(this).select();
|
})
|
}
|
})
|
|
$.validator.addMethod("isPlateNumber",function(value,element){
|
var platenumber = /^[\u4e00-\u9fa5]{1}[A-Za-z]{1}[A-Za-z_0-9]{5,6}$/;
|
return this.optional(element) || platenumber.test(value);
|
},"请输入正确的车牌号!");
|
|
$.validator.addMethod("isPhone",function(value,element){
|
var mobile = /^[1][0-9]{10}$/;
|
return this.optional(element) || mobile.test(value);
|
},"请输入正确的手机号!");
|
|
if (!Array.prototype.indexOf){
|
Array.prototype.indexOf = function(elt /*, from*/){
|
var len = this.length >>> 0;
|
|
var from = Number(arguments[1]) || 0;
|
from = (from < 0)
|
? Math.ceil(from)
|
: Math.floor(from);
|
if (from < 0)
|
from += len;
|
|
for (; from < len; from++){
|
if (from in this && this[from] === elt)
|
return from;
|
}
|
return -1;
|
};
|
}
|