Login ready

This commit is contained in:
2017-12-19 17:23:34 +01:00
parent a7de7ed80a
commit 327dc4376c
11 changed files with 120 additions and 18 deletions
+3 -1
View File
@@ -32,7 +32,9 @@ dbo.loginService = {
if ( ! submitDATA ) return self.notifyWrongPassword();
ds.login( submitDATA, function ( data ) {
// if ( data ) return location.reload();
if ( data ) return location.reload();
self.notifyWrongPassword();
} );
} );
+11 -9
View File
@@ -11,14 +11,15 @@ var notifyMe = function ( options, callback ) {
dbo.notifyModel = {
title : ko.observable( null ),
message : ko.observable( null ),
notify : ko.observable( false ),
alert : ko.observable( false ),
noText : ko.observable( null ),
yesText : ko.observable( null ),
closeText: ko.observable( null ),
callback : null,
title : ko.observable( null ),
message : ko.observable( null ),
notify : ko.observable( false ),
alert : ko.observable( false ),
noText : ko.observable( null ),
yesText : ko.observable( null ),
closeText : ko.observable( null ),
modalClass: ko.observable( null ),
callback : null,
init: function ( options, callback ) {
var vm = dbo.notifyModel;
@@ -35,10 +36,11 @@ dbo.notifyModel = {
vm.title( options.title || '' );
vm.message( options.message || '' );
vm.notify( options.notify || true );
vm.notify( options.notify || false );
vm.noText( options.noText || 'Nee' );
vm.yesText( options.yesText || 'Ja' );
vm.closeText( options.closeText || 'ok' );
vm.modalClass( options.modalClass || 'modal-primary' )
},
closeNo: function () {