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
|
* 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",
|
||||||
|
Loading…
Reference in New Issue
Block a user