Skip to content

Commit

Permalink
mini fix when assigning div id
Browse files Browse the repository at this point in the history
  • Loading branch information
riedelcastro committed Jan 14, 2017
1 parent d8f8055 commit b4eee1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions egal/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ define(['./egal', 'base/js/namespace', 'jquery'], function (egal, Jupyter, $) {
cell.element.find("div div.input_area > *").toggle();
var inputArea = cell.element.find("div div.input_area");
var cellToolBar = cell.element.find(".celltoolbar");
var divId = 'egal_' + cell.metadata.egal_id;
var divId = 'egal_' + cell.cell_id;
if (cell.metadata.is_egal) {
old_color = inputArea.css("background-color");
inputArea.append($("<div id='" + divId + "'></div>"));
Expand Down Expand Up @@ -52,9 +52,6 @@ define(['./egal', 'base/js/namespace', 'jquery'], function (egal, Jupyter, $) {
// Find the selected cell
var cell = Jupyter.notebook.get_selected_cell();
cell.metadata.is_egal = !cell.metadata.is_egal;
if (cell.metadata.is_egal && !cell.metadata.egal_id) {
cell.metadata.egal_id = cell.cell_id;
}
setup_egal_cell(cell);
};

Expand All @@ -63,7 +60,6 @@ define(['./egal', 'base/js/namespace', 'jquery'], function (egal, Jupyter, $) {
var cell = Jupyter.notebook.insert_cell_below("raw");
cell.set_text("<svg height='250'></svg>");
cell.metadata.is_egal = true;
cell.metadata.egal_id = cell.cell_id;
setup_egal_cell(cell);
};

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='egal', # This is the name of your PyPI-package.
version='0.1.2', # Update the version number for new releases
version='0.1.3', # Update the version number for new releases
scripts=[], # The name of your script, and also the command you'll be using for calling it
packages=['egal'],
author='Sebastian Riedel',
Expand Down

0 comments on commit b4eee1a

Please sign in to comment.