http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8163

Julian Maurice <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Julian Maurice <[email protected]> ---
I wonder if we can make things more generic, like for example:

<a href="#" class="set_syspref" data-syspref="OPACXSLTResultsDisplay"
data-value="default">Set to default</a>
<a href="#" class="set_syspref" data-syspref="OPACXSLTResultsDisplay"
data-value="">Leave empty</a>

with JS:

$(".set_syspref").click(function() {
    var s = $(this).attr('data-syspref');
    var v = $(this).attr('data-value');
    $("#pref_"+s).val(v);
});

or something like this. What do you think? This way we can provide default
button for all 'Free' and 'Integer' sysprefs that have a default value.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to