Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

BUG Fixing Update URLSegment from Title behavior. #217

Merged
merged 1 commit into from

2 participants

@ryanwachtl

The class name of a field used to determine if a page was "new" had changed from LiveURLSegment = > LiveLink.

@ryanwachtl ryanwachtl BUG Fixing Update URLSegment from Title behavior.
The class name of a field used to determine if a page was "new" had changed from LiveURLSegment = > LiveLink.
5a52904
@chillu
Owner

Thanks Ryan!

@chillu chillu merged commit 0a92c81 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 6, 2012
  1. @ryanwachtl

    BUG Fixing Update URLSegment from Title behavior.

    ryanwachtl authored
    The class name of a field used to determine if a page was "new" had changed from LiveURLSegment = > LiveLink.
This page is out of date. Refresh to see the latest.
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();
Something went wrong with that request. Please try again.