Merge pull request #384 from Ruxton/patch-1

Patch 1
This commit is contained in:
Mario Visic 2012-04-26 01:08:17 -07:00
commit 3cad1b734e

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