Skip to content

Commit

Permalink
Small codestyle fixes && css fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelte Lagendijk committed Jul 27, 2016
1 parent 901793f commit 15cb3ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/LoginForm/widget/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@version : 3.5.0
@author : Mendix
@date : 7/26/2016
@copyright : {{copyright}}
@copyright : Mendix B.V.
@license : Apache 2.0
Documentation
========================
Expand Down Expand Up @@ -137,15 +137,14 @@ define([
if (this.dofocus) {
this._focusNode();
}

},
/**
* Conditionally sets the icon and caption of the show-password button
* @private
*/
_styleShowPasswordButton: function () {
if (this.showImage) {
this._captionShow = '<img src="' + this.showImage + '" />';
this._captionShow = "<img src=\"" + this.showImage + "\" />";
}

if (this.showButtonCaption.trim() !== "") {
Expand All @@ -158,7 +157,7 @@ define([
*/
_styleMaskPasswordButton: function () {
if (this.hideImage) {
this._captionHide = '<img src="' + this.hideImage + '" />';
this._captionHide = "<img src=\"" + this.hideImage + "\" />";
}

if (this.hideButtonCaption.trim() !== "") {
Expand Down Expand Up @@ -202,13 +201,12 @@ define([
*/
_loginFailed : function (code) {
logger.debug(this.id + "._loginFailed");
var message = "";

if (this._indicator) {
mx.ui.hideProgress(this._indicator);
}

message = this.getStatusMessage(code);
var message = this.getStatusMessage(code);
logger.warn("Login has failed with Code: " + code + " and Message: " + message);

if (this.showLoginFailureWarning) {
Expand Down
6 changes: 5 additions & 1 deletion src/LoginForm/widget/ui/LoginForm.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.login-form-widget .toggle {
cursor: pointer;
}

.login-form-widget .toggle span {
padding-left: 5px;
}
}
Binary file modified test/widgets/LoginForm.mpk
Binary file not shown.

0 comments on commit 15cb3ca

Please sign in to comment.