|
Lines 9-15
$(document).ready(function() {
Link Here
|
| 9 |
|
9 |
|
| 10 |
KOHA.Preferences = { |
10 |
KOHA.Preferences = { |
| 11 |
Save: function ( form ) { |
11 |
Save: function ( form ) { |
| 12 |
data = $( form ).find( '.modified' ).serialize(); |
12 |
modified_prefs = $( form ).find( '.modified' ); |
|
|
13 |
data = modified_prefs.serialize(); |
| 13 |
if ( !data ) { |
14 |
if ( !data ) { |
| 14 |
humanMsg.displayAlert( 'Nothing to save' ); |
15 |
humanMsg.displayAlert( 'Nothing to save' ); |
| 15 |
return; |
16 |
return; |
|
Lines 23-29
KOHA.Preferences = {
Link Here
|
| 23 |
} ); |
24 |
} ); |
| 24 |
}, |
25 |
}, |
| 25 |
Success: function ( form ) { |
26 |
Success: function ( form ) { |
| 26 |
humanMsg.displayAlert( 'Saved' ); |
27 |
var msg = ""; |
|
|
28 |
modified_prefs.each(function(){ |
| 29 |
var modified_pref = $(this).attr("id"); |
| 30 |
modified_pref = modified_pref.replace("pref_",""); |
| 31 |
msg += '<strong>Saved preference '+modified_pref+'</strong>\n'; |
| 32 |
}); |
| 33 |
humanMsg.displayAlert(msg); |
| 27 |
|
34 |
|
| 28 |
$( form ) |
35 |
$( form ) |
| 29 |
.find( '.modified-warning' ).remove().end() |
36 |
.find( '.modified-warning' ).remove().end() |
| 30 |
- |
|
|