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

View File

@ -357,8 +357,8 @@ $(document).ready(function(){
* New model * New model
* *
*/ */
if(window.location.pathname.match('admin/content_types/new') != null || if(window.location.pathname.match(/admin\/content_types\/new[\/]?$/) != null ||
window.location.pathname.match('admin/content_types/.+/edit')){ window.location.pathname.match(/admin\/content_types\/.+\/edit[\/]?$/)){
guiders.createGuider({ guiders.createGuider({
attachTo: "undefined", attachTo: "undefined",