View | Details | Raw Unified | Return to bug 5532
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/css/preferences.css (+5 lines)
Lines 61-63 h3.collapsed { Link Here
61
	cursor : pointer;
61
	cursor : pointer;
62
	padding-left : 12px;
62
	padding-left : 12px;
63
}
63
}
64
65
.humanMsg strong {
66
	display: block;
67
	font-weight: normal;
68
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js (-3 / +9 lines)
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
- 

Return to bug 5532