mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 22:37:41 -02:30
fixed password button on survey taker
This commit is contained in:
@@ -548,14 +548,14 @@ export function CredentialsEdit($scope, $rootScope, $compile, $location, $log, $
|
|||||||
$("#" + form.name + "_" + fld + "_show_input_button").html("Hide");
|
$("#" + form.name + "_" + fld + "_show_input_button").html("Hide");
|
||||||
if (associated !== "undefined") {
|
if (associated !== "undefined") {
|
||||||
$("#" + form.name + "_" + fld + "_input").attr("type", "password");
|
$("#" + form.name + "_" + fld + "_input").attr("type", "password");
|
||||||
$("#" + form.name + "_" + fld + "_show_input_button").html("ABC");
|
$("#" + form.name + "_" + fld + "_show_input_button").html("Show");
|
||||||
$scope[associated] = '';
|
$scope[associated] = '';
|
||||||
$scope[form.name + '_form'][associated].$setValidity('awpassmatch', true);
|
$scope[form.name + '_form'][associated].$setValidity('awpassmatch', true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$scope[fld] = '';
|
$scope[fld] = '';
|
||||||
$("#" + form.name + "_" + fld + "_input").attr("type", "password");
|
$("#" + form.name + "_" + fld + "_input").attr("type", "password");
|
||||||
$("#" + form.name + "_" + fld + "_show_input_button").html("ABC");
|
$("#" + form.name + "_" + fld + "_show_input_button").html("Show");
|
||||||
if (associated !== "undefined") {
|
if (associated !== "undefined") {
|
||||||
$("#" + form.name + "_" + fld + "_input").attr("type", "text");
|
$("#" + form.name + "_" + fld + "_input").attr("type", "text");
|
||||||
$("#" + form.name + "_" + fld + "_show_input_button").html("Hide");
|
$("#" + form.name + "_" + fld + "_show_input_button").html("Hide");
|
||||||
|
|||||||
@@ -589,7 +589,7 @@ function($compile, Rest, GetBasePath, TextareaResize,CreateDialog, GenerateForm,
|
|||||||
maxlength =(!Empty(question.max)) ? Number(question.max) : "" ;
|
maxlength =(!Empty(question.max)) ? Number(question.max) : "" ;
|
||||||
html+= '<div class="input-group">'+
|
html+= '<div class="input-group">'+
|
||||||
'<span class="input-group-btn">'+
|
'<span class="input-group-btn">'+
|
||||||
'<button class="btn btn-default show_input_button" id="'+question.variable +'_show_input_button" aw-tool-tip="Toggle the display of plaintext." aw-tip-placement="top" ng-click="toggleInput("#'+question.variable+'")" data-original-title="" title="">ABC</button>'+
|
'<button class="btn btn-default show_input_button" id="'+question.variable +'_show_input_button" aw-tool-tip="Toggle the display of plaintext." aw-tip-placement="top" ng-click="toggleInput("#'+question.variable+'")" data-original-title="" title="">Show</button>'+
|
||||||
'</span>'+
|
'</span>'+
|
||||||
'<input id="'+question.variable+'" type="password" ng-model="'+question.variable+'" name="'+question.variable+'" '+
|
'<input id="'+question.variable+'" type="password" ng-model="'+question.variable+'" name="'+question.variable+'" '+
|
||||||
'ng-required="'+question.required+'"'+
|
'ng-required="'+question.required+'"'+
|
||||||
|
|||||||
Reference in New Issue
Block a user