forked from Archives/Athou_commafeed
autofilled fields do not trigger model update, do it manually
This commit is contained in:
@@ -1460,7 +1460,8 @@ module.controller('MetricsCtrl', ['$scope', 'AdminMetricsService', function($sco
|
|||||||
$scope.metrics = AdminMetricsService.get();
|
$scope.metrics = AdminMetricsService.get();
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
module.controller('LoginCtrl', ['$scope', '$location', 'SessionService', 'ServerService', function($scope, $location, SessionService, ServerService) {
|
module.controller('LoginCtrl', ['$scope', '$location', '$timeout', 'SessionService', 'ServerService',
|
||||||
|
function($scope, $location, $timeout, SessionService, ServerService) {
|
||||||
$scope.model = {};
|
$scope.model = {};
|
||||||
$scope.recovery_model = {};
|
$scope.recovery_model = {};
|
||||||
$scope.recovery = false;
|
$scope.recovery = false;
|
||||||
@@ -1470,6 +1471,11 @@ module.controller('LoginCtrl', ['$scope', '$location', 'SessionService', 'Server
|
|||||||
$scope.recovery_enabled = data.smtpEnabled;
|
$scope.recovery_enabled = data.smtpEnabled;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// autofilled fields do not trigger model update, do it manually
|
||||||
|
$timeout(function() {
|
||||||
|
$('input[ng-model]').trigger('input');
|
||||||
|
}, 100);
|
||||||
|
|
||||||
var login = function(model) {
|
var login = function(model) {
|
||||||
var success = function(data) {
|
var success = function(data) {
|
||||||
window.location.href = window.location.href.substring(0, window.location.href.lastIndexOf('#'));
|
window.location.href = window.location.href.substring(0, window.location.href.lastIndexOf('#'));
|
||||||
|
|||||||
Reference in New Issue
Block a user