Skip to content

Commit

Permalink
Merge pull request #2416 from mansam/hostaggregate-cancel-novalidate
Browse files Browse the repository at this point in the history
Set formnovalidate on "create host aggregate" form's cancel button
(cherry picked from commit 0b2cfce)

https://bugzilla.redhat.com/show_bug.cgi?id=1511144
  • Loading branch information
mzazrivec authored and simaishi committed Nov 14, 2017
1 parent 22f98ee commit 9c50e09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/host_aggregate/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@
"ng-disabled" => "angularForm.$pristine",
"ng-class" => "{ disabled: angularForm.$pristine}")
= button_tag(_("Cancel"),
:class => "btn btn-default",
"ng-click" => "cancelClicked()")
:class => "btn btn-default",
:formnovalidate => 'true',
"ng-click" => "cancelClicked()")
:javascript
ManageIQ.angular.app.value('hostAggregateFormId', '#{@host_aggregate.id || "new"}');
Expand Down

0 comments on commit 9c50e09

Please sign in to comment.