Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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.
  • Loading branch information...
commit 5a5290421b2f2f2b788098e64fe130105d42b5e8 1 parent a6d0998
Ryan Wachtl authored October 05, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  javascript/CMSMain.EditForm.js
4  javascript/CMSMain.EditForm.js
@@ -29,7 +29,7 @@
29 29
 				
30 30
 				var form = self.parents('form');
31 31
 				var url_segment = $('.field.urlsegment', form).find(':text');
32  
-				var live_url_segment = $('input[name=LiveURLSegment]', form);
  32
+				var live_link = $('input[name=LiveLink]', form);
33 33
 				
34 34
 				self._addActions();
35 35
 
@@ -40,7 +40,7 @@
40 40
 						self.data('OrigVal', title);
41 41
 
42 42
 						// Criteria for defining a "new" page
43  
-						if ((url_segment.val().indexOf('new') == 0) && live_url_segment.val() == '') {
  43
+						if ((url_segment.val().indexOf('new') == 0) && live_link.val() == '') {
44 44
 							self.updateURLSegment(title);
45 45
 						} else {
46 46
 							$('.update', self.parent()).show();

0 notes on commit 5a52904

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