Login ready
This commit is contained in:
@@ -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,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 () {
|
||||
|
||||
Reference in New Issue
Block a user