Skip to content

Commit

Permalink
BUG Fixing Update URLSegment from Title behavior.
Browse files Browse the repository at this point in the history
The class name of a field used to determine if a page was "new" had changed from LiveURLSegment = > LiveLink.
  • Loading branch information
ryanwachtl committed Oct 6, 2012
1 parent a6d0998 commit 5a52904
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/CMSMain.EditForm.js
Expand Up @@ -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();

Expand All @@ -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();
Expand Down

0 comments on commit 5a52904

Please sign in to comment.