-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minors fixes and initial work on save widget.
* Fixed width of buttons in left panel. * Started to create a save widget for the header.
- Loading branch information
Showing
5 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
//============================================================================ | ||
// Cell | ||
//============================================================================ | ||
|
||
var IPython = (function (IPython) { | ||
|
||
var utils = IPython.utils; | ||
|
||
var SaveWidget = function (selector) { | ||
this.element = $(selector); | ||
this.create_element(); | ||
if (this.element !== undefined) { | ||
this.element.data("cell", this); | ||
this.bind_events(); | ||
} | ||
}; | ||
|
||
|
||
SaveWidget.prototype.bind_events = function () { | ||
var that = this; | ||
}; | ||
|
||
|
||
// Subclasses must implement create_element. | ||
SaveWidget.prototype.create_element = function () { | ||
this.element. | ||
append($('textarea')). | ||
append($('<button>Save</button>').button()); | ||
}; | ||
|
||
IPython.SaveWidget = SaveWidget; | ||
|
||
return IPython; | ||
|
||
}(IPython)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters