diff options
author | Einar Egilsson <einar@einaregilsson.com> | 2015-09-11 10:33:36 +0000 |
---|---|---|
committer | Einar Egilsson <einar@einaregilsson.com> | 2015-09-11 10:33:36 +0000 |
commit | 4c7ba5856ce3bf2976094e2c19d1f99054929360 (patch) | |
tree | 76f6e5a5531736c6c92dc3d144808a858981cb68 /js | |
parent | 8a77401f48360fe0d5501d4fd6b4cc194279d4f0 (diff) |
Redirector Help ready
Diffstat (limited to 'js')
-rw-r--r-- | js/controllers/editredirect.js | 3 | ||||
-rw-r--r-- | js/redirect.js | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/js/controllers/editredirect.js b/js/controllers/editredirect.js index f24f3e6..f2f613c 100644 --- a/js/controllers/editredirect.js +++ b/js/controllers/editredirect.js @@ -29,6 +29,9 @@ redirectorApp.controller('EditRedirectCtrl', ['$scope', function($s) { return; //Button is already disabled, but we still get the click } + //Just make sure it's freshly updated when saved + $s.redirect.updateExampleResult(); + if ($s.editIndex >= 0) { $s.redirects[$s.editIndex] = $s.redirect; } else { diff --git a/js/redirect.js b/js/redirect.js index b895ed9..16fa78c 100644 --- a/js/redirect.js +++ b/js/redirect.js @@ -204,6 +204,8 @@ Redirect.prototype = { _init : function(o) { this.description = o.description || '', this.exampleUrl = o.exampleUrl || ''; + this.exampleResult = o.exampleResult || ''; + this.error = o.error || null; this.includePattern = o.includePattern || ''; this.excludePattern = o.excludePattern || ''; this.redirectUrl = o.redirectUrl || ''; |