Skip to content

Commit 2c06ffb

Browse files
committed
validateWithAjax is unused as of 9268a85
1 parent 0703ed0 commit 2c06ffb

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

app/javascript/oldjs/services/miq_service.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ ManageIQ.angular.app.service('miqService', ['$q', 'API', '$window', function($q,
8787
.catch(options.handleFailure);
8888
};
8989

90-
this.validateWithAjax = function(url, model) {
91-
miqSparkleOn();
92-
miqAjaxButton(url, model || true);
93-
};
94-
9590
this.disabledClick = function($event) {
9691
$event.preventDefault();
9792
};

spec/javascripts/services/miq_service_spec.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,20 +154,6 @@ describe('miqService', function() {
154154
});
155155
});
156156

157-
describe('#validateWithAjax', function() {
158-
beforeEach(function() {
159-
testService.validateWithAjax('/host/create/new?button=validate&type=default');
160-
});
161-
162-
it('turns the spinner on via the miqService', function() {
163-
expect(window.miqSparkleOn).toHaveBeenCalled();
164-
});
165-
166-
it('delegates to miqService.miqAjaxButton', function() {
167-
expect(window.miqAjaxButton).toHaveBeenCalledWith('/host/create/new?button=validate&type=default', true);
168-
});
169-
});
170-
171157
describe('#disabledClick', function() {
172158
it('prevents a submit action', function() {
173159
var event = $.Event('click');

0 commit comments

Comments
 (0)