Normalized "use strict" quoting and minor fixed to components

This commit is contained in:
Giulio Cesare Solaroli
2015-08-18 17:31:02 +02:00
parent a0bd079b51
commit 6fed029616
18 changed files with 48 additions and 19 deletions

View File

@@ -60,6 +60,22 @@ Clipperz.PM.UI.Components.Pages.LoginPageClass = React.createClass({
this.setState(newState);
},
pollForChanges: function() {
if (this.props.mode == 'CREDENTIALS') {
var newState;
var usernameValue = this.refs['username'].getDOMNode().value;
var passphraseValue = this.refs['passphrase'].getDOMNode().value;
newState = {};
newState['username'] = (usernameValue) ? usernameValue : "";
newState['passphrase'] = (passphraseValue) ? passphraseValue : "";
this.setState(newState);
}
},
//=========================================================================
handleCredentialSubmit: function (event) {

View File

@@ -21,7 +21,7 @@ refer to http://www.clipperz.com.
*/
'use strict';
"use strict";
Clipperz.Base.module('Clipperz.PM.UI.Components.Pages');
Clipperz.PM.UI.Components.Pages.MainPageClass = React.createClass({