function wpv_view_filter_meta_html() {
jQuery(#wpv_filter_meta_html_admin_show).hide();
jQuery(#wpv_filter_meta_html_admin_edit).show();
// See if there are user controls and submit button is hidden.
var c = jQuery(textarea#wpv_filter_meta_html_content).val();
if (c.search(/\[wpv-control.*?\]/g) != -1) {
if (c.search(/\[wpv-filter-submit[^\]]*?hide="true"/) != -1) {
wpv_filter_submit_hidden_warning();
}
}
}
function wpv_view_filter_meta_html_close() {
jQuery(#wpv_filter_meta_html_admin_show).show();
jQuery(#wpv_filter_meta_html_admin_edit).hide();
jQuery(#wpv_filter_meta_html_content_error).hide();
jQuery(#wpv_filter_control_meta_html_content_error).hide();
}
jQuery(document).ready(function($){
jQuery(#wpv_filter_meta_html_content).keyup(function(event) {
jQuery(#wpv_filter_meta_html_notice).show();
show_view_changed_message();
});
});
function wpv_filter_meta_html_generate_new() {
jQuery(#wpv_filter_meta_html_content_old).val(jQuery(#wpv_filter_meta_html_content).val());
jQuery(#wpv_filter_meta_html_content_old_div).show();
jQuery(#wpv_filter_meta_html_content_error).hide();
jQuery(#wpv_filter_control_meta_html_content_error).hide();
on_generate_wpv_filter(true);
}
function wpv_filter_meta_html_old_dismiss() {
jQuery(#wpv_filter_meta_html_content_old_div).hide();
}