Show More
@@ -1226,7 +1226,6 b' ul.icons-ul{list-style-type:none;text-indent:-0.7142857142857143em;margin-left:2' | |||||
1226 | .alternate_upload.form{padding:0;margin:0;} |
|
1226 | .alternate_upload.form{padding:0;margin:0;} | |
1227 | .alternate_upload input.fileinput{background-color:red;position:relative;opacity:0;z-index:2;width:295px;margin-left:163px;cursor:pointer;} |
|
1227 | .alternate_upload input.fileinput{background-color:red;position:relative;opacity:0;z-index:2;width:295px;margin-left:163px;cursor:pointer;} | |
1228 | #tabs{border-style:none;} |
|
1228 | #tabs{border-style:none;} | |
1229 | #tab1,#tab2{padding:1em 0em;} |
|
|||
1230 | .list_toolbar{padding:5px;height:25px;line-height:25px;} |
|
1229 | .list_toolbar{padding:5px;height:25px;line-height:25px;} | |
1231 | .toolbar_info{float:left;} |
|
1230 | .toolbar_info{float:left;} | |
1232 | .toolbar_buttons{float:right;} |
|
1231 | .toolbar_buttons{float:right;} | |
@@ -1235,9 +1234,9 b' ul.icons-ul{list-style-type:none;text-indent:-0.7142857142857143em;margin-left:2' | |||||
1235 | .notebook_item a{text-decoration:none;} |
|
1234 | .notebook_item a{text-decoration:none;} | |
1236 | .status_col{float:right;width:325px;} |
|
1235 | .status_col{float:right;width:325px;} | |
1237 | .engines_col{float:right;width:325px;} |
|
1236 | .engines_col{float:right;width:325px;} | |
1238 | .action_col{float:right;} |
|
1237 | .action_col{float:right;width:64px;text-align:right;} | |
1239 | .item_buttons{float:right;} |
|
1238 | .item_buttons{float:right;margin-top:1px;} | |
1240 | .item_buttons .upload_button{color:darkred;} |
|
1239 | input.nbname_input{height:15px;} | |
1241 | .highlight_text{color:blue;} |
|
1240 | .highlight_text{color:blue;} | |
1242 | #project_name>.breadcrumb{padding:0;background-color:transparent;} |
|
1241 | #project_name>.breadcrumb{padding:0;background-color:transparent;} | |
1243 | input.engine_num_input{height:20px;margin-bottom:2px;padding-top:0;padding-bottom:0;width:90px;} |
|
1242 | input.engine_num_input{height:20px;margin-bottom:2px;padding-top:0;padding-bottom:0;width:90px;} |
@@ -120,7 +120,7 b' var IPython = (function (IPython) {' | |||||
120 | engines_col.append(input); |
|
120 | engines_col.append(input); | |
121 | var start_button = $('<button/>').addClass("btn btn-mini").text("Start"); |
|
121 | var start_button = $('<button/>').addClass("btn btn-mini").text("Start"); | |
122 | var action_col = $('<span/>').addClass('action_col').append( |
|
122 | var action_col = $('<span/>').addClass('action_col').append( | |
123 | $("<span/>").addClass("btn-group pull-right").append( |
|
123 | $("<span/>").addClass("item_buttons btn-group pull-right").append( | |
124 | start_button |
|
124 | start_button | |
125 | ) |
|
125 | ) | |
126 | ); |
|
126 | ); | |
@@ -161,7 +161,7 b' var IPython = (function (IPython) {' | |||||
161 | var engines_col = $('<span/>').addClass('engines_col').html(this.data.n); |
|
161 | var engines_col = $('<span/>').addClass('engines_col').html(this.data.n); | |
162 | var stop_button = $('<button/>').addClass("btn btn-mini").text("Stop"); |
|
162 | var stop_button = $('<button/>').addClass("btn btn-mini").text("Stop"); | |
163 | var action_col = $('<span/>').addClass('action_col').append( |
|
163 | var action_col = $('<span/>').addClass('action_col').append( | |
164 | $("<span/>").addClass("btn-group pull-right").append( |
|
164 | $("<span/>").addClass("item_buttons btn-group pull-right").append( | |
165 | stop_button |
|
165 | stop_button | |
166 | ) |
|
166 | ) | |
167 | ); |
|
167 | ); |
@@ -13,9 +13,7 b'' | |||||
13 | $(document).ready(function () { |
|
13 | $(document).ready(function () { | |
14 |
|
14 | |||
15 | IPython.page = new IPython.Page(); |
|
15 | IPython.page = new IPython.Page(); | |
16 | // $('#ipython-main-app').addClass('border-box-sizing ui-widget'); |
|
16 | $('#new_notebook').click(function (e) { | |
17 | // $('div#notebooks_toolbar').addClass('ui-widget ui-helper-clearfix'); |
|
|||
18 | $('#new_notebook').button().click(function (e) { |
|
|||
19 | window.open($('body').data('baseProjectUrl')+'new'); |
|
17 | window.open($('body').data('baseProjectUrl')+'new'); | |
20 | }); |
|
18 | }); | |
21 |
|
19 |
@@ -162,7 +162,6 b' var IPython = (function (IPython) {' | |||||
162 |
|
162 | |||
163 |
|
163 | |||
164 | NotebookList.prototype.add_link = function (notebook_id, nbname, item) { |
|
164 | NotebookList.prototype.add_link = function (notebook_id, nbname, item) { | |
165 | console.log(item); |
|
|||
166 | item.data('nbname', nbname); |
|
165 | item.data('nbname', nbname); | |
167 | item.data('notebook_id', notebook_id); |
|
166 | item.data('notebook_id', notebook_id); | |
168 | item.find("a.item_row") |
|
167 | item.find("a.item_row") | |
@@ -176,10 +175,11 b' var IPython = (function (IPython) {' | |||||
176 | item.data('nbname', nbname); |
|
175 | item.data('nbname', nbname); | |
177 | var new_item_name = $('<span/>').addClass('item_name'); |
|
176 | var new_item_name = $('<span/>').addClass('item_name'); | |
178 | new_item_name.append( |
|
177 | new_item_name.append( | |
179 | $('<input/>').addClass('ui-widget ui-widget-content'). |
|
178 | $('<input/>') | |
180 | attr('value', nbname). |
|
179 | .addClass("nbname_input") | |
181 |
attr(' |
|
180 | .attr('value', nbname) | |
182 |
attr(' |
|
181 | .attr('size', '30') | |
|
182 | .attr('type', 'text') | |||
183 | ); |
|
183 | ); | |
184 | var e = item.find('.item_name'); |
|
184 | var e = item.find('.item_name'); | |
185 | if (e.length === 0) { |
|
185 | if (e.length === 0) { | |
@@ -263,10 +263,9 b' var IPython = (function (IPython) {' | |||||
263 |
|
263 | |||
264 | NotebookList.prototype.add_upload_button = function (item) { |
|
264 | NotebookList.prototype.add_upload_button = function (item) { | |
265 | var that = this; |
|
265 | var that = this; | |
266 | var new_buttons = $('<span/>').addClass('item_buttons'); |
|
266 | var upload_button = $('<button/>').text("Upload") | |
267 | var upload_button = $('<button>Upload</button>').button(). |
|
267 | .addClass('btn btn-primary btn-mini upload_button') | |
268 | addClass('upload-button'). |
|
268 | .click(function (e) { | |
269 | click(function (e) { |
|
|||
270 | var nbname = item.find('.item_name > input').attr('value'); |
|
269 | var nbname = item.find('.item_name > input').attr('value'); | |
271 | var nbformat = item.data('nbformat'); |
|
270 | var nbformat = item.data('nbformat'); | |
272 | var nbdata = item.data('nbdata'); |
|
271 | var nbdata = item.data('nbdata'); | |
@@ -294,13 +293,14 b' var IPython = (function (IPython) {' | |||||
294 | $.ajax(url, settings); |
|
293 | $.ajax(url, settings); | |
295 | return false; |
|
294 | return false; | |
296 | }); |
|
295 | }); | |
297 |
var cancel_button = $('<button |
|
296 | var cancel_button = $('<button/>').text("Cancel") | |
298 | click(function (e) { |
|
297 | .addClass("btn btn-mini") | |
|
298 | .click(function (e) { | |||
|
299 | console.log('cancel click'); | |||
299 | item.remove(); |
|
300 | item.remove(); | |
300 | return false; |
|
301 | return false; | |
301 | }); |
|
302 | }); | |
302 | upload_button.addClass('upload_button'); |
|
303 | item.find(".item_buttons").empty() | |
303 | item.find(".item_buttons").html("") |
|
|||
304 | .append(upload_button) |
|
304 | .append(upload_button) | |
305 | .append(cancel_button); |
|
305 | .append(cancel_button); | |
306 | }; |
|
306 | }; |
@@ -10,7 +10,6 b'' | |||||
10 | } |
|
10 | } | |
11 |
|
11 | |||
12 | #tab1, #tab2 { |
|
12 | #tab1, #tab2 { | |
13 | padding: 1em 0em; |
|
|||
14 | } |
|
13 | } | |
15 |
|
14 | |||
16 | .list_toolbar { |
|
15 | .list_toolbar { | |
@@ -64,14 +63,17 b'' | |||||
64 |
|
63 | |||
65 | .action_col { |
|
64 | .action_col { | |
66 | float: right; |
|
65 | float: right; | |
|
66 | width: 64px; | |||
|
67 | text-align: right; | |||
67 | } |
|
68 | } | |
68 |
|
69 | |||
69 | .item_buttons { |
|
70 | .item_buttons { | |
70 | float: right; |
|
71 | float: right; | |
|
72 | margin-top: 1px; | |||
71 | } |
|
73 | } | |
72 |
|
74 | |||
73 | .item_buttons .upload_button { |
|
75 | input.nbname_input { | |
74 | color: darkred; |
|
76 | height: 15px; | |
75 | } |
|
77 | } | |
76 |
|
78 | |||
77 | .highlight_text { |
|
79 | .highlight_text { |
General Comments 0
You need to be logged in to leave comments.
Login now