This reverts commit 228180b1ef.
This commit is contained in:
committed by
GitHub
parent
228180b1ef
commit
adf879e8b2
@@ -46,8 +46,8 @@ function($, _, gettext, BaseView, ViewUtils, AddXBlockButton, AddXBlockMenu, Htm
|
||||
event.stopPropagation();
|
||||
type = $(event.currentTarget).data('type');
|
||||
this.$('.new-component').slideUp(250);
|
||||
this.$(`.new-component-${type}`).slideDown(250);
|
||||
this.$(`.new-component-${type} div`).focus();
|
||||
this.$('.new-component-' + type).slideDown(250);
|
||||
this.$('.new-component-' + type + ' div').focus();
|
||||
},
|
||||
|
||||
closeNewComponent: function(event) {
|
||||
@@ -57,7 +57,7 @@ function($, _, gettext, BaseView, ViewUtils, AddXBlockButton, AddXBlockMenu, Htm
|
||||
type = $(event.currentTarget).data('type');
|
||||
this.$('.new-component').slideDown(250);
|
||||
this.$('.new-component-templates').slideUp(250);
|
||||
this.$(`ul.new-component-type li button[data-type=${type}]`).focus();
|
||||
this.$('ul.new-component-type li button[data-type=' + type + ']').focus();
|
||||
},
|
||||
|
||||
createNewComponent: function(event) {
|
||||
|
||||
@@ -2,7 +2,7 @@ define(['jquery', 'js/views/baseview', 'edx-ui-toolkit/js/utils/html-utils'],
|
||||
function($, BaseView, HtmlUtils) {
|
||||
return BaseView.extend({
|
||||
className: function() {
|
||||
return `new-component-templates new-component-${this.model.type}`;
|
||||
return 'new-component-templates new-component-' + this.model.type;
|
||||
},
|
||||
initialize: function() {
|
||||
BaseView.prototype.initialize.call(this);
|
||||
|
||||
Reference in New Issue
Block a user