silverstripe-testsession/javascript/testsession.js
2013-12-12 14:18:18 +01: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));