Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #217 from ryanwachtl/fixing-update-url-from-title

BUG Fixing Update URLSegment from Title behavior.
  • Loading branch information...
commit 0a92c81002073c8b77d202be88bc02cd7b0d3b09 2 parents 196db98 + 5a52904
@chillu chillu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 javascript/CMSMain.EditForm.js
View
4 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();

0 comments on commit 0a92c81

Please sign in to comment.
Something went wrong with that request. Please try again.