##// END OF EJS Templates
gshow
Matthias BUSSONNIER -
Show More
@@ -23,6 +23,27 b''
23 display: block;
23 display: block;
24 }
24 }
25
25
26 .ctb_wrapper{
27 display: none;
28 }
29
30 .toolbaron .ctb_wrapper{
31 display: block;
32 display: -webkit-box;
33 }
34
35 .toolbaron .ctb_wrapper + div > div.input_area,
36 .toolbaron .ctb_wrapper + div.text_cell_input{
37 border-top-right-radius: 0px;
38 border-top-left-radius: 0px;
39 }
40
41 .toolbaron > .celltoolbar {
42 border-bottom-right-radius: 0px;
43 border-bottom-left-radius: 0px;
44 }
45
46
26 .button_container {
47 .button_container {
27 float: right;
48 float: right;
28 }
49 }
@@ -53,25 +53,30 b' var IPython = (function (IPython) {'
53 CellToolbar.dropdown_preset_element.change(function() {
53 CellToolbar.dropdown_preset_element.change(function() {
54 var val = CellToolbar.dropdown_preset_element.val()
54 var val = CellToolbar.dropdown_preset_element.val()
55 if(val ==''){
55 if(val ==''){
56 CellToolbar.hide();
56 CellToolbar.global_hide();
57 } else {
57 } else {
58 CellToolbar.show();
58 CellToolbar.global_show();
59 CellToolbar.activate_preset(val);
59 CellToolbar.activate_preset(val);
60 }
60 }
61 })
61 })
62
62
63
63
64 CellToolbar.hide = function () {
64 CellToolbar.global_hide = function () {
65 $('.ctb_wrapper').hide();
65 $('body').removeClass('toolbaron');
66 $('.input_area').addClass('no_input_radius');
67 $('.text_cell_input').addClass('no_input_radius');
68 }
66 }
69
67
70
68
71 CellToolbar.show = function () {
69 CellToolbar.global_show = function () {
72 $('.ctb_wrapper').show();
70 $('body').addClass('toolbaron');
73 $('.input_area').removeClass('no_input_radius');
71 }
74 $('.text_cell_input').removeClass('no_input_radius');
72
73 CellToolbar.prototype.hide = function () {
74 this.element.removeClass('toolbaron');
75 }
76
77
78 CellToolbar.prototype.show = function () {
79 this.element.addClass('toolbaron');
75 }
80 }
76
81
77
82
General Comments 0
You need to be logged in to leave comments. Login now