use correct arg name

This commit is contained in:
fat 2013-08-17 19:07:59 -07:00
parent 9828aa5b4d
commit 06c3d87973
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ window.onload = function () { // wait for load in a dumb way because B-0
dataType: 'json', dataType: 'json',
data: JSON.stringify(data) data: JSON.stringify(data)
}) })
.success(function(err) { .success(function(result) {
history.replaceState(false, document.title, window.location.origin + window.location.pathname + '?id=' + e.id) history.replaceState(false, document.title, window.location.origin + window.location.pathname + '?id=' + result.id)
}) })
.error(function(err) { .error(function(err) {
showError('<strong>Error</strong> Could not save gist file, configuration not saved.', err) showError('<strong>Error</strong> Could not save gist file, configuration not saved.', err)