Enable custom event teams delimiter

This commit is contained in:
Brian Miyaji
2014-03-22 00:01:02 +11:00
parent a4ab59da27
commit f730f7886e
4 changed files with 40 additions and 3 deletions

View File

@@ -303,6 +303,19 @@ jQuery(document).ready(function($){
// Trigger status selector
$(".sp-status-selector select:first-child").change();
// Preset field modifier
$(".sp-custom-input-wrapper .preset").click(function() {
val = $(this).val();
if(val == "\\c\\u\\s\\t\\o\\m") return true;
example = $(this).attr("data-example");
$(this).closest(".sp-custom-input-wrapper").find(".value").val(val).siblings(".example").html(example);
});
// Select custom preset when field is brought to focus
$(".sp-custom-input-wrapper .value").focus(function() {
$(this).siblings("label").find(".preset").prop("checked", true);
});
// Remove slug editor in quick edit for slug-sensitive post types
$(".inline-edit-sp_result, .inline-edit-sp_outcome, .inline-edit-sp_column, .inline-edit-sp_statistic").find("input[name=post_name]").closest("label").remove();