Commit 06c3d879 authored by fat's avatar fat
Browse files

use correct arg name

parent 9828aa5b
Showing with 2 additions and 2 deletions
+2 -2
......@@ -34,8 +34,8 @@ window.onload = function () { // wait for load in a dumb way because B-0
dataType: 'json',
data: JSON.stringify(data)
})
.success(function(err) {
history.replaceState(false, document.title, window.location.origin + window.location.pathname + '?id=' + e.id)
.success(function(result) {
history.replaceState(false, document.title, window.location.origin + window.location.pathname + '?id=' + result.id)
})
.error(function(err) {
showError('<strong>Error</strong> Could not save gist file, configuration not saved.', err)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment