@@ -27,10 +27,6 @@ ManageIQ.angular.app.service('miqService', ['$q', 'API', '$window', function($q,
27
27
miqJqueryRequest ( url , { beforeSend : true , data : serializeFields } ) ;
28
28
} ;
29
29
30
- this . restAjaxButton = function ( url , button , dataType , data ) {
31
- miqRESTAjaxButton ( url , button , dataType , data ) ;
32
- } ;
33
-
34
30
this . jqueryRequest = function ( url , options ) {
35
31
return miqJqueryRequest ( url , options ) ;
36
32
} ;
@@ -69,12 +65,6 @@ ManageIQ.angular.app.service('miqService', ['$q', 'API', '$window', function($q,
69
65
return form . $valid && form . $dirty ;
70
66
} ;
71
67
72
- this . detectWithRest = function ( $event , url ) {
73
- angular . element ( '#button_name' ) . val ( 'detect' ) ;
74
- miqSparkleOn ( ) ;
75
- return $q . when ( miqRESTAjaxButton ( url , $event . target , 'json' ) ) ;
76
- } ;
77
-
78
68
this . networkProviders = function ( options ) {
79
69
options = Object . assign ( options || { } , {
80
70
attributes : [ 'id' , 'name' ] ,
@@ -97,34 +87,6 @@ ManageIQ.angular.app.service('miqService', ['$q', 'API', '$window', function($q,
97
87
. catch ( options . handleFailure ) ;
98
88
} ;
99
89
100
- this . validateWithAjax = function ( url , model ) {
101
- miqSparkleOn ( ) ;
102
- miqAjaxButton ( url , model || true ) ;
103
- } ;
104
-
105
- this . validateWithREST = function ( $event , credType , url , formSubmit ) {
106
- angular . element ( '#button_name' ) . val ( 'validate' ) ;
107
- angular . element ( '#cred_type' ) . val ( credType ) ;
108
- if ( formSubmit ) {
109
- miqSparkleOn ( ) ;
110
- return $q . when ( miqRESTAjaxButton ( url , $event . target , 'json' ) ) ;
111
- }
112
- $event . preventDefault ( ) ;
113
- } ;
114
-
115
- this . validateClicked = function ( $event , authType , formSubmit , angularForm , url ) {
116
- miqService . validateWithREST ( $event , authType , url , formSubmit )
117
- . then ( function success ( data ) {
118
- if ( data . level === 'error' ) {
119
- angularForm . default_auth_status . $setViewValue ( false ) ;
120
- } else {
121
- angularForm . default_auth_status . $setViewValue ( true ) ;
122
- }
123
- miqService . miqFlash ( data . level , data . message ) ;
124
- miqService . sparkleOff ( ) ;
125
- } ) ;
126
- } ;
127
-
128
90
this . disabledClick = function ( $event ) {
129
91
$event . preventDefault ( ) ;
130
92
} ;
0 commit comments