##// END OF EJS Templates
use bootstrap `disabled` instead of `ui-state-disabled`...
MinRK -
Show More
@@ -724,7 +724,7 b' var IPython = (function (IPython) {'
724 var i = this.index_or_selected(index);
724 var i = this.index_or_selected(index);
725 var cell = this.get_selected_cell();
725 var cell = this.get_selected_cell();
726 this.undelete_backup = cell.toJSON();
726 this.undelete_backup = cell.toJSON();
727 $('#undelete_cell').removeClass('ui-state-disabled');
727 $('#undelete_cell').removeClass('disabled');
728 if (this.is_valid_cell_index(i)) {
728 if (this.is_valid_cell_index(i)) {
729 var ce = this.get_cell_element(i);
729 var ce = this.get_cell_element(i);
730 ce.remove();
730 ce.remove();
@@ -1005,11 +1005,11 b' var IPython = (function (IPython) {'
1005 Notebook.prototype.enable_paste = function () {
1005 Notebook.prototype.enable_paste = function () {
1006 var that = this;
1006 var that = this;
1007 if (!this.paste_enabled) {
1007 if (!this.paste_enabled) {
1008 $('#paste_cell_replace').removeClass('ui-state-disabled')
1008 $('#paste_cell_replace').removeClass('disabled')
1009 .on('click', function () {that.paste_cell_replace();});
1009 .on('click', function () {that.paste_cell_replace();});
1010 $('#paste_cell_above').removeClass('ui-state-disabled')
1010 $('#paste_cell_above').removeClass('disabled')
1011 .on('click', function () {that.paste_cell_above();});
1011 .on('click', function () {that.paste_cell_above();});
1012 $('#paste_cell_below').removeClass('ui-state-disabled')
1012 $('#paste_cell_below').removeClass('disabled')
1013 .on('click', function () {that.paste_cell_below();});
1013 .on('click', function () {that.paste_cell_below();});
1014 this.paste_enabled = true;
1014 this.paste_enabled = true;
1015 };
1015 };
@@ -1022,9 +1022,9 b' var IPython = (function (IPython) {'
1022 */
1022 */
1023 Notebook.prototype.disable_paste = function () {
1023 Notebook.prototype.disable_paste = function () {
1024 if (this.paste_enabled) {
1024 if (this.paste_enabled) {
1025 $('#paste_cell_replace').addClass('ui-state-disabled').off('click');
1025 $('#paste_cell_replace').addClass('disabled').off('click');
1026 $('#paste_cell_above').addClass('ui-state-disabled').off('click');
1026 $('#paste_cell_above').addClass('disabled').off('click');
1027 $('#paste_cell_below').addClass('ui-state-disabled').off('click');
1027 $('#paste_cell_below').addClass('disabled').off('click');
1028 this.paste_enabled = false;
1028 this.paste_enabled = false;
1029 };
1029 };
1030 };
1030 };
@@ -1123,7 +1123,7 b' var IPython = (function (IPython) {'
1123 this.undelete_backup = null;
1123 this.undelete_backup = null;
1124 this.undelete_index = null;
1124 this.undelete_index = null;
1125 }
1125 }
1126 $('#undelete_cell').addClass('ui-state-disabled');
1126 $('#undelete_cell').addClass('disabled');
1127 }
1127 }
1128
1128
1129 // Split/merge
1129 // Split/merge
@@ -86,11 +86,11 b' class="notebook_app"'
86 <ul class="dropdown-menu">
86 <ul class="dropdown-menu">
87 <li id="cut_cell"><a href="#">Cut Cell</a></li>
87 <li id="cut_cell"><a href="#">Cut Cell</a></li>
88 <li id="copy_cell"><a href="#">Copy Cell</a></li>
88 <li id="copy_cell"><a href="#">Copy Cell</a></li>
89 <li id="paste_cell_above" class="ui-state-disabled"><a href="#">Paste Cell Above</a></li>
89 <li id="paste_cell_above" class="disabled"><a href="#">Paste Cell Above</a></li>
90 <li id="paste_cell_below" class="ui-state-disabled"><a href="#">Paste Cell Below</a></li>
90 <li id="paste_cell_below" class="disabled"><a href="#">Paste Cell Below</a></li>
91 <li id="paste_cell_replace" class="ui-state-disabled"><a href="#">Paste Cell &amp; Replace</a></li>
91 <li id="paste_cell_replace" class="disabled"><a href="#">Paste Cell &amp; Replace</a></li>
92 <li id="delete_cell"><a href="#">Delete Cell</a></li>
92 <li id="delete_cell"><a href="#">Delete Cell</a></li>
93 <li id="undelete_cell" class="ui-state-disabled"><a href="#">Undo Delete Cell</a></li>
93 <li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li>
94 <li class="divider"></li>
94 <li class="divider"></li>
95 <li id="split_cell"><a href="#">Split Cell</a></li>
95 <li id="split_cell"><a href="#">Split Cell</a></li>
96 <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li>
96 <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li>
General Comments 0
You need to be logged in to leave comments. Login now