Merge "Correct usage of angular.element"
This commit is contained in:
commit
78da989738
@ -18,12 +18,10 @@
|
||||
.module('horizon.app.tech-debt')
|
||||
.controller('ImageFormController', ImageFormController);
|
||||
|
||||
ImageFormController.$inject = ['$element'];
|
||||
|
||||
function ImageFormController($element) {
|
||||
function ImageFormController() {
|
||||
var ctrl = this;
|
||||
ctrl.copyFrom = $element('.image_url').val();
|
||||
ctrl.diskFormat = $element('.disk_format').val();
|
||||
ctrl.copyFrom = angular.element('.image_url').val();
|
||||
ctrl.diskFormat = angular.element('.disk_format').val();
|
||||
ctrl.selectImageFormat = function (path) {
|
||||
if (!path) { return; }
|
||||
var format = path.substr(path.lastIndexOf(".") + 1)
|
||||
|
Loading…
Reference in New Issue
Block a user