[Koha-bugs] [Bug 8163] Click to populate XSLT preferences with "default" or empty values
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jun 12 17:08:32 CEST 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8163
Julian Maurice <julian.maurice at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |julian.maurice at biblibre.com
--- Comment #2 from Julian Maurice <julian.maurice at biblibre.com> ---
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.
More information about the Koha-bugs
mailing list