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

This commit is contained in:
Greg Tangey (Ruxton) 2012-04-26 16:06:05 +08:00
parent 0663aadcf8
commit 8067c93880
1 changed files with 2 additions and 2 deletions

View File

@ -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",