equal
deleted
inserted
replaced
1 /** |
1 /** |
2 * jQuery support code for our forms |
2 * jQuery support code for our forms |
3 */ |
3 */ |
4 |
4 |
5 (function($) { |
5 (function($) { |
6 /* |
|
7 * Form field is empty - i.e. null value |
|
8 * |
|
9 * Pure whitespace also counts |
|
10 */ |
|
11 $.fn.empty = function () { |
|
12 return !this.val() || $.trim(this.val()) == ""; |
|
13 } |
|
14 |
|
15 /** |
6 /** |
16 * Query or set form field disabled state |
7 * Query or set form field disabled state |
17 */ |
8 */ |
18 $.fn.disabled = function (flag) { |
9 $.fn.disabled = function (flag) { |
19 if (flag == undefined) |
10 if (flag == undefined) |