From 47e6691e3c001813966d7f1379ab152b7e5afaec Mon Sep 17 00:00:00 2001 From: Dirk Kelly Date: Tue, 1 Feb 2011 16:08:06 +0800 Subject: [PATCH] hide the listed option on a template --- public/javascripts/admin/pages.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/public/javascripts/admin/pages.js b/public/javascripts/admin/pages.js index 2511bde9..a74fee85 100644 --- a/public/javascripts/admin/pages.js +++ b/public/javascripts/admin/pages.js @@ -31,20 +31,20 @@ $(document).ready(function() { }, 'json'); } }); - + // templatized feature $.subscribe('toggle.page_templatized.checked', function(event, data) { $('#page_slug_input').hide(); $('#page_redirect').parent('li').hide(); - $('#page_unlisted').parent('li').hide(); + $('#page_listed').parent('li').hide(); $('#page_content_type_id_input').show(); }, []); $.subscribe('toggle.page_templatized.unchecked', function(event, data) { $('#page_slug_input').show(); $('#page_redirect').parent('li').show(); - $('#page_unlisted').parent('li').show(); + $('#page_listed').parent('li').show(); $('#page_slug').val(makeSlug($('#page_title').val())).addClass('touched'); $('#page_content_type_id_input').hide(); }, []); @@ -53,14 +53,12 @@ $(document).ready(function() { $.subscribe('toggle.page_redirect.checked', function(event, data) { $('#page_templatized').parent('li').hide(); - $('#page_unlisted').parent('li').show(); $('#page_cache_strategy_input').hide(); $('#page_redirect_url_input').show(); }, []); $.subscribe('toggle.page_redirect.unchecked', function(event, data) { $('#page_templatized').parent('li').show(); - $('#page_unlisted').parent('li').show(); $('#page_cache_strategy_input').show(); $('#page_redirect_url_input').hide(); }, []);