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