Add events list template

This commit is contained in:
Brian Miyaji
2014-03-17 19:12:12 +11:00
parent a7eb732933
commit e39b938d6e
12 changed files with 286 additions and 26 deletions

View File

@@ -212,6 +212,18 @@ jQuery(document).ready(function($){
// Trigger check check
$(".sp-data-table").trigger("checkCheck");
// Video embed
$(".sp-add-video").click(function() {
$(this).closest("fieldset").hide().siblings(".sp-video-field").show();
return false;
});
// Removing video embed
$(".sp-remove-video").click(function() {
$(this).closest("fieldset").hide().siblings(".sp-video-adder").show().siblings(".sp-video-field").find("input").val(null);
return false;
});
// Equation selector
$(".sp-equation-selector select:last").change(function() {
$(this).siblings().change(function() {