Add function to check if post type is config type

This commit is contained in:
Brian Miyaji
2014-04-15 18:59:52 +10:00
parent 0e380bfa4a
commit d311f6ac56
4 changed files with 12 additions and 5 deletions

View File

@@ -352,9 +352,6 @@ jQuery(document).ready(function($){
$(this).siblings(".example").html(example);
});
// 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_performance").find("input[name=post_name]").closest("label").remove();
// Prevent address input from submitting form
$(".sp-address").keypress(function(event) {
return event.keyCode != 13;