From 9c22e437b8954ebb74c5ca11706b4712578a53b3 Mon Sep 17 00:00:00 2001 From: "florian.azizian" <florian.azizian@maarch.org> Date: Tue, 13 Mar 2018 16:47:27 +0100 Subject: [PATCH] FIX ts view --- .../app/save-numeric-package.component.ts | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/apps/maarch_entreprise/js/angular/app/save-numeric-package.component.ts b/apps/maarch_entreprise/js/angular/app/save-numeric-package.component.ts index 70198afe552..8c8f664fdf1 100644 --- a/apps/maarch_entreprise/js/angular/app/save-numeric-package.component.ts +++ b/apps/maarch_entreprise/js/angular/app/save-numeric-package.component.ts @@ -3,18 +3,13 @@ import { Http } from '@angular/http'; import 'rxjs/add/operator/map'; declare function $j(selector: any) : any; -declare function disablePrototypeJS(method: string, plugins: any) : any; -declare function createModal(a: string, b: string, c: string, d: string) : any; -declare function autocomplete(a: number, b: string) : any; -declare var tinymce : any; -declare var Prototype : any; declare var angularGlobals : any; @Component({ - templateUrl : angularGlobals["save-numeric-packageView"], - styleUrls : ['../../node_modules/bootstrap/dist/css/bootstrap.min.css', 'css/profile.component.css'] + templateUrl : "../../../../Views/save-numeric-package.component.html", + // styleUrls : ['../../node_modules/bootstrap/dist/css/bootstrap.min.css', 'css/profile.component.css'] }) export class SaveNumericPackageComponent implements OnInit { @@ -51,13 +46,6 @@ export class SaveNumericPackageComponent implements OnInit { $j('#content h1')[0].remove(); } - if (Prototype.BrowserFeatures.ElementExtensions) { - //FIX PROTOTYPE CONFLICT - let pluginsToDisable = ['collapse', 'dropdown', 'modal', 'tooltip', 'popover','tab']; - disablePrototypeJS('show', pluginsToDisable); - disablePrototypeJS('hide', pluginsToDisable); - } - } updateBreadcrumb(applicationName: string) { -- GitLab