Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // any CSS you require will output into a single css file (app.css in this case)
- import '../css/app.css';
- import '../../node_modules/bootstrap/dist/css/bootstrap.css';
- import '../../node_modules/admin-lte/bower_components/font-awesome/css/font-awesome.min.css';
- import '../../node_modules/admin-lte/bower_components/Ionicons/css/ionicons.min.css';
- import '../../node_modules/admin-lte/dist/css/AdminLTE.min.css';
- import '../../node_modules/admin-lte/dist/css/skins/skin-blue.min.css';
- const $ = require('jquery');
- global.$ = global.jquery = $;
- import 'bootstrap';
- import '../../node_modules/admin-lte/bower_components/jquery-ui/jquery-ui.js';
- import '../../node_modules/admin-lte/dist/js/adminlte.js';
- const alertify = require('alertifyjs');
- global.alertify = alertify;
- // Custom js
- import './dashboard/GMDashboard.js';
- import './explotations/GMExplotations.js';
- 'use strict';
- (function(window, $, alertify) {
- window.GMExplotations = function($wrapper) {
- console.log($wrapper);
- this.$wrapper = $wrapper;
- //TODO: Bind events
- // App Init
- this.init();
- };
- $.extend(window.GMExplotations.prototype, {
- _selectors: {
- },
- init: function() {
- console.log('Alertify test');
- alertify
- .alert("This is an alert dialog.", function(){
- alertify.message('OK');
- });
- },
- });
- let ExplotationsWrapper = $('#explotations-table');
- if (ExplotationsWrapper.length > 0) {
- let GM = new GMExplotations(ExplotationsWrapper);
- }
- })(window, jQuery, alertify); <- Here fails
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement