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:
parent
0663aadcf8
commit
8067c93880
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user