Skip to content

Commit

Permalink
Fixes for @rgbkrk's suggestions to make phantom tests pass
Browse files Browse the repository at this point in the history
switch consts to var per
remove trailing commas
  • Loading branch information
mpacer committed Feb 21, 2018
1 parent 4a636b4 commit 74137ef
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions notebook/static/notebook/js/menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ define('notebook/js/menubar',[
this.notebook.notebook_path
);

const build_json_for_post = function(notebook, config, format) {
const json_to_pass = {
var build_json_for_post = function(notebook, config, format) {
var json_to_pass = {
notebook_contents: {
content: notebook.toJSON(),
name: notebook.notebook_name,
last_modified: notebook.last_modified,
last_modified: notebook.last_modified
},
output_format: format,
config: config,
config: config
};
return json_to_pass;
};
Expand Down Expand Up @@ -219,7 +219,7 @@ define('notebook/js/menubar',[
var url =
utils.url_path_join(
that.base_url,
"nbconvert",
"nbconvert"
) +
"?download=" +
download.toString();
Expand Down Expand Up @@ -250,12 +250,12 @@ define('notebook/js/menubar',[
a.style = "display: none";
return (
function(data, fileName) {
var blob = new Blob([data], { type: "octet/stream" }),
url = window.URL.createObjectURL(blob);
a.href = url;
var blob = new Blob([data], { type: "octet/stream" });
var objectUrl = window.URL.createObjectURL(blob);
a.href = objectUrl;
a.download = fileName;
a.click();
window.URL.revokeObjectURL(url);
window.URL.revokeObjectURL(objectUrl);
document.body.removeChild(a);
}
)
Expand Down Expand Up @@ -417,7 +417,7 @@ define('notebook/js/menubar',[
'#copy_cell_attachments': 'copy-cell-attachments',
'#paste_cell_attachments': 'paste-cell-attachments',
'#insert_image': 'insert-image',
'#edit_keyboard_shortcuts' : 'edit-command-mode-keyboard-shortcuts',
'#edit_keyboard_shortcuts' : 'edit-command-mode-keyboard-shortcuts'
};

for(var idx in id_actions_dict){
Expand Down

0 comments on commit 74137ef

Please sign in to comment.