silverstripe-testsession/javascript/testsession.js

11 lines
345 B
JavaScript
Raw 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));