silverstripe-testsession/client/js/testsession.js
2017-04-26 15:59:54 +12:00

11 lines
345 B
JavaScript

(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));