diff --git a/javascript/CMSMain.EditForm.js b/javascript/CMSMain.EditForm.js index 85218d8e..355100ad 100644 --- a/javascript/CMSMain.EditForm.js +++ b/javascript/CMSMain.EditForm.js @@ -29,7 +29,7 @@ var form = self.parents('form'); var url_segment = $('.field.urlsegment', form).find(':text'); - var live_url_segment = $('input[name=LiveURLSegment]', form); + var live_link = $('input[name=LiveLink]', form); self._addActions(); @@ -40,7 +40,7 @@ self.data('OrigVal', title); // Criteria for defining a "new" page - if ((url_segment.val().indexOf('new') == 0) && live_url_segment.val() == '') { + if ((url_segment.val().indexOf('new') == 0) && live_link.val() == '') { self.updateURLSegment(title); } else { $('.update', self.parent()).show();