Merge "Correct usage of angular.element"

This commit is contained in:
Jenkins 2015-09-02 18:16:43 +00:00 committed by Gerrit Code Review
commit 78da989738

View File

@ -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)