Skip to content

Commit

Permalink
FIX #1 Add Ext to file submenu
Browse files Browse the repository at this point in the history
  • Loading branch information
hikenace committed Feb 7, 2019
1 parent ab447ef commit dfa2753
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jupytext.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ define([
.on('click', function () { window.open('https://jupytext.readthedocs.io/en/latest/') })
.prepend($('<i/>').addClass('pull-right')));

$('#kernel_menu').parent().after('<li id="jupytext_menu"/>')
$('#jupytext_menu').addClass('dropdown').append(JupytextMenu).append(JupytextActions)
$('#trust_notebook').before('<li id="jupytext_sub_menu"/>');
$('#jupytext_sub_menu').addClass('dropdown-submenu').append(JupytextMenu).append(JupytextActions)
JupytextActions.append(jupytext_link)
JupytextActions.append($('<li/>').addClass('divider'))
JupytextActions.append(jupytext_pair('ipynb,auto:light', 'Pair Notebook with light Script'))
Expand All @@ -118,7 +118,9 @@ define([
JupytextActions.append($('<li/>').addClass('divider'))
JupytextActions.append(jupytext_pair('none', 'Unpair notebook'))

checkSelectedJupytextFormat()
$('#jupytext_sub_menu').after('<li class="divider"/>');

checkSelectedJupytextFormat();
};
}

Expand Down

0 comments on commit dfa2753

Please sign in to comment.