Lines 2-7
Link Here
|
2 |
|
2 |
|
3 |
KOHA.Preferences = { |
3 |
KOHA.Preferences = { |
4 |
Save: function ( form ) { |
4 |
Save: function ( form ) { |
|
|
5 |
if ( ! $(form).valid() ) { |
6 |
humanMsg.displayAlert( MSG_INVALID ); |
7 |
return; |
8 |
} |
9 |
|
5 |
modified_prefs = $( form ).find( '.modified' ); |
10 |
modified_prefs = $( form ).find( '.modified' ); |
6 |
// $.serialize removes empty value, we need to keep them. |
11 |
// $.serialize removes empty value, we need to keep them. |
7 |
// If a multiple select has all its entries unselected |
12 |
// If a multiple select has all its entries unselected |
Lines 143-146
$( document ).ready( function () {
Link Here
|
143 |
if ( search_jumped ) { |
148 |
if ( search_jumped ) { |
144 |
document.location.hash = "jumped"; |
149 |
document.location.hash = "jumped"; |
145 |
} |
150 |
} |
|
|
151 |
|
152 |
$(".prefs-tab form").each(function () { |
153 |
$(this).validate({ |
154 |
rules: { }, |
155 |
errorPlacement: function(error, element) { |
156 |
var placement = $(element).parent(); |
157 |
if (placement) { |
158 |
$(placement).append(error) |
159 |
} else { |
160 |
error.insertAfter(element); |
161 |
} |
162 |
} |
163 |
}); |
164 |
}); |
165 |
|
166 |
$(".preference-email").each(function() { |
167 |
$(this).rules("add", { |
168 |
email: true |
169 |
}); |
170 |
}); |
146 |
} ); |
171 |
} ); |
147 |
- |
|
|