From 4ac96b78d5567735e2bdcbca4bba372fee3acff6 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 13 Aug 2014 15:48:21 -0400 Subject: [PATCH] blocks edit page don't require a page or a url --- Toolkit/Blocks/js/editPage.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Toolkit/Blocks/js/editPage.js b/Toolkit/Blocks/js/editPage.js index 2779974..d312bd2 100644 --- a/Toolkit/Blocks/js/editPage.js +++ b/Toolkit/Blocks/js/editPage.js @@ -129,10 +129,10 @@ $(function(){ } var page_to = $('input[name="page_to"]', this).val(); var blockUrl = $('input[name="url"]', this).val(); - if (page_to == '' && blockUrl == '') { - errors++; - msg += "Please select a Page to link to\nor Enter a URL!\n"; - } +// if (page_to == '' && blockUrl == '') { +// errors++; +// msg += "Please select a Page to link to\nor Enter a URL!\n"; +// } if (errors > 0) { alert("Error: " + msg); return false; -- 2.17.1