提交 | 用户 | 时间
|
58d006
|
1 |
$.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, { |
A |
2 |
_title: function(title) { |
|
3 |
var $title = this.options.title || ' ' |
|
4 |
if( ("title_html" in this.options) && this.options.title_html == true ) |
|
5 |
title.html($title); |
|
6 |
else title.text($title); |
|
7 |
} |
|
8 |
})); |
|
9 |
|
|
10 |
(function() { |
|
11 |
window.ISIE = ("ActiveXObject" in window); |
|
12 |
})() |
|
13 |
|
|
14 |
function getpath(){return '';} |
|
15 |
|
|
16 |
$(function() { |
|
17 |
if (typeof I != 'undefined' && I.keyword) { |
|
18 |
I.keyword.on(ISIE ? 'keydown' : 'keyup', function (event) { |
|
19 |
if (event.keyCode == 13) { |
|
20 |
$(this).select(); |
|
21 |
} |
|
22 |
}); |
|
23 |
I.keyword.focus(function() { |
|
24 |
$(this).select(); |
|
25 |
}) |
|
26 |
} |
|
27 |
}) |
|
28 |
|
|
29 |
$.validator.addMethod("isPlateNumber",function(value,element){ |
|
30 |
var platenumber = /^[\u4e00-\u9fa5]{1}[A-Za-z]{1}[A-Za-z_0-9]{5,6}$/; |
|
31 |
return this.optional(element) || platenumber.test(value); |
|
32 |
},"请输入正确的车牌号!"); |
|
33 |
|
|
34 |
$.validator.addMethod("isPhone",function(value,element){ |
|
35 |
var mobile = /^[1][0-9]{10}$/; |
|
36 |
return this.optional(element) || mobile.test(value); |
|
37 |
},"请输入正确的手机号!"); |
|
38 |
|
|
39 |
if (!Array.prototype.indexOf){ |
|
40 |
Array.prototype.indexOf = function(elt /*, from*/){ |
|
41 |
var len = this.length >>> 0; |
|
42 |
|
|
43 |
var from = Number(arguments[1]) || 0; |
|
44 |
from = (from < 0) |
|
45 |
? Math.ceil(from) |
|
46 |
: Math.floor(from); |
|
47 |
if (from < 0) |
|
48 |
from += len; |
|
49 |
|
|
50 |
for (; from < len; from++){ |
|
51 |
if (from in this && this[from] === elt) |
|
52 |
return from; |
|
53 |
} |
|
54 |
return -1; |
|
55 |
}; |
|
56 |
} |