silverstripe-testsession/client/js/testsession.js

11 lines
345 B
JavaScript
Raw Permalink Normal View History

2013-12-12 14:18:18 +01:00
(function($) {
$(document).ready(function() {
// Only show database templates when "create database" is selected
var tmplField = $('#createDatabaseTemplate'),
createField = $('#createDatabase input'),
toggleFn = function() {tmplField.toggle(createField.is(':checked'));};
toggleFn();
createField.click(toggleFn);
});
}(jQuery));