Skip to content

Commit 8a2ea99

Browse files
author
Philip Guo
committed
slight clean-ups
1 parent d8f5582 commit 8a2ea99

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎edu-python-questions.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ $(document).ready(function() {
5757
$(window).bind("hashchange", function(e) {
5858
appMode = $.bbq.getState("mode"); // assign this to the GLOBAL appMode
5959

60+
// default mode is 'edit'
61+
if (appMode == undefined) {
62+
appMode = 'edit';
63+
}
64+
6065
if (appMode == 'edit') {
6166
$("#pyInputPane").show();
6267
$("#pyOutputPane").hide();
@@ -111,7 +116,6 @@ $(document).ready(function() {
111116
});
112117

113118

114-
enterEditMode();
115119
// From: http://benalman.com/projects/jquery-bbq-plugin/
116120
// Since the event is only triggered when the hash changes, we need
117121
// to trigger the event now, to handle the hash the page may have

0 commit comments

Comments
 (0)