Skip to content

Commit

Permalink
#6423 fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
piorek committed Feb 1, 2018
1 parent 80db587 commit b35d47a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion js/notebook/src/easyForm/comboBoxWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class ComboBoxView extends widgets.SelectView {
this.listbox.setAttribute('size', this.model.get('size'));

setTimeout(() => {
$(this.listbox).combobox({
let listbox:any = $(this.listbox);
listbox.combobox({
change: this.setValueToModel.bind(this),
});

Expand Down
2 changes: 1 addition & 1 deletion js/notebook/src/extension/gistPublish/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function doPublish(personalAccessToken): void {
}
};

return $.ajax(gistsUrl, settings).catch((jqXHR, status, err) => {
$.ajax(gistsUrl, settings).catch((jqXHR, status, err) => {
let errorMsg = jqXHR.readyState === 0 && !err ? 'NETWORK ERROR!' : err;

if (jqXHR.responseJSON && jqXHR.responseJSON.message) {
Expand Down
5 changes: 3 additions & 2 deletions js/notebook/src/tableDisplay/tableHeaderMenu/HeaderMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default abstract class HeaderMenu implements MenuInterface {
return submenu;
}

private handleKeydownEvent(event: KeyboardEvent): void {
private handleKeydownEvent(event): void {
this.menu.isVisible && this.menu.handleEvent(event);
}

Expand All @@ -194,7 +194,8 @@ export default abstract class HeaderMenu implements MenuInterface {
})
.on('keydown.keyTable', '.dropdown-menu-search input', function(event) { event.stopImmediatePropagation(); })
.on('keyup.HeaderMenu, change', '.dropdown-menu-search input', function(event) {
const searchExp = this.value ? new RegExp(this.value, 'i') : null;
let value = (this as HTMLInputElement).value;
const searchExp = value ? new RegExp(value, 'i') : null;

if (event.keyCode === 27) {
menu.close();
Expand Down

0 comments on commit b35d47a

Please sign in to comment.