diff --git a/app/index.js b/app/index.js index cd0c70a25..cba9e4244 100644 --- a/app/index.js +++ b/app/index.js @@ -132,6 +132,7 @@ require("./scripts/services.js") require("./scripts/extended.js") require("./scripts/struct_services.js") require("./scripts/directives.js") +require("./scripts/directives/scroll.js") require("./scripts/filter_directives.js") require("./scripts/newsdesk.js") diff --git a/app/scripts/app.js b/app/scripts/app.js index 43bbf1d67..8cbb6c6ed 100644 --- a/app/scripts/app.js +++ b/app/scripts/app.js @@ -5,6 +5,7 @@ import { kwicPagerName, kwicPager } from "./components/pager" import { sidebarName, sidebarComponent } from "./components/sidebar" import * as autoc from "./components/autoc" import * as readingmode from "./components/readingmode" +import * as extendedAddBox from "./components/extended/extended_add_box" import { setDefaultConfigValues } from "./settings.js" setDefaultConfigValues() @@ -46,6 +47,7 @@ window.korpApp = angular.module("korpApp", [ korpApp.component(kwicPagerName, kwicPager).component(sidebarName, sidebarComponent) korpApp.component(readingmode.componentName, readingmode.component) korpApp.component(autoc.componentName, autoc.component) +korpApp.component(extendedAddBox.componentName, extendedAddBox.component) // load all custom components (imported in index.js) for(const componentName in window.customComponents) { diff --git a/app/scripts/components/autoc.js b/app/scripts/components/autoc.js index c8fb5612c..1214e40f1 100644 --- a/app/scripts/components/autoc.js +++ b/app/scripts/components/autoc.js @@ -57,7 +57,7 @@ export const component = { 'lexicons', function ($q, lexicons) { const ctrl = this - + ctrl.isError = false ctrl.$onChanges = () => { diff --git a/app/scripts/components/extended/extended_add_box.js b/app/scripts/components/extended/extended_add_box.js new file mode 100644 index 000000000..2d11f2e42 --- /dev/null +++ b/app/scripts/components/extended/extended_add_box.js @@ -0,0 +1,68 @@ +/** @format */ +export const componentName = "addBox" + +let html = String.raw +export const component = { + template: html` +