From 8067c9388052cefe34542baec7e62c565cf445d6 Mon Sep 17 00:00:00 2001 From: "Greg Tangey (Ruxton)" Date: Thu, 26 Apr 2012 16:06:05 +0800 Subject: [PATCH] Fixes issue in public/javascripts/admin/tutorial.js - was matching on /admin/content_types/new when you have a model called news. Thanks to @karlbright --- public/javascripts/admin/tutorial.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/javascripts/admin/tutorial.js b/public/javascripts/admin/tutorial.js index 8c152db0..cf9fcea3 100644 --- a/public/javascripts/admin/tutorial.js +++ b/public/javascripts/admin/tutorial.js @@ -357,8 +357,8 @@ $(document).ready(function(){ * New model * */ - if(window.location.pathname.match('admin/content_types/new') != null || - window.location.pathname.match('admin/content_types/.+/edit')){ + if(window.location.pathname.match(/admin\/content_types\/new[\/]?$/) != null || + window.location.pathname.match(/admin\/content_types\/.+\/edit[\/]?$/)){ guiders.createGuider({ attachTo: "undefined",