Skip to content

Commit

Permalink
#69 Fix jqeury import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Mar 30, 2018
1 parent 2f41da5 commit 4cc4ced
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

import $ from 'jquery';
import Dropzone from 'dropzone';

import tpl from './file-chooser.html';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

import $ from 'jquery';

export default function(app) {
app.directive('fixedHeight', fixedHeightDirective);

Expand All @@ -13,17 +15,17 @@ export default function(app) {

function linkFn(scope, elem /*, attr*/) {
$timeout(function() {
let windowHeight = angular.element(window).height();
let footerHeight = angular.element('.main-footer').outerHeight();
let headerHeight = angular.element('.main-header').height();
let windowHeight = $(window).height();
let footerHeight = $('.main-footer').outerHeight();
let headerHeight = $('.main-header').height();

elem.css('min-height', windowHeight - headerHeight - footerHeight);
}, 500);

angular.element($window).bind('resize', function() {
let windowHeight = angular.element(window).height();
let footerHeight = angular.element('.main-footer').outerHeight();
let headerHeight = angular.element('.main-header').height();
let windowHeight = $(window).height();
let footerHeight = $('.main-footer').outerHeight();
let headerHeight = $('.main-header').height();

elem.css('min-height', windowHeight - headerHeight - footerHeight);
});
Expand Down
5 changes: 2 additions & 3 deletions www/src/app/index.vendor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

// node_modules
import $ from 'jquery';

import 'angular';

import '@uirouter/angularjs';
Expand All @@ -13,8 +14,6 @@ import 'angular-sanitize';

import 'angular-messages';

import 'jquery';

import 'angular-resource';

import 'angular-ui-bootstrap';
Expand Down

0 comments on commit 4cc4ced

Please sign in to comment.