Updated Copyright claims
- updated reference dates; - removed reference to Community Edition; - normalized logging using Clipperz.log[Warn|Error|Debug]
This commit is contained in:
@@ -1,25 +1,23 @@
|
||||
/*
|
||||
|
||||
Copyright 2008-2011 Clipperz Srl
|
||||
Copyright 2008-2013 Clipperz Srl
|
||||
|
||||
This file is part of Clipperz Community Edition.
|
||||
Clipperz Community Edition is an online password manager.
|
||||
This file is part of Clipperz, the online password manager.
|
||||
For further information about its features and functionalities please
|
||||
refer to http://www.clipperz.com.
|
||||
|
||||
* Clipperz Community Edition is free software: you can redistribute
|
||||
it and/or modify it under the terms of the GNU Affero General Public
|
||||
License as published by the Free Software Foundation, either version
|
||||
3 of the License, or (at your option) any later version.
|
||||
* Clipperz is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
* Clipperz Community Edition is distributed in the hope that it will
|
||||
be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* Clipperz is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Affero General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU Affero General Public
|
||||
License along with Clipperz Community Edition. If not, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
License along with Clipperz. If not, see http://www.gnu.org/licenses/.
|
||||
|
||||
*/
|
||||
|
||||
@@ -58,7 +56,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.CardDetail, Clipperz.PM.UI
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
'renderSelf': function () {
|
||||
console.log("CardDetail.renderSelf");
|
||||
this.append(this.element(), {tag:'div', cls:'cardDetail', children:[
|
||||
{tag:'div', cls:'toolbar', children:[
|
||||
{tag:'a', href:'#', cls:'back', html:"List"},
|
||||
@@ -155,7 +152,6 @@ console.log("CardDetail.renderSelf");
|
||||
]}
|
||||
]})
|
||||
|
||||
console.log("ADD DIRECT LOGIN", aDirectLogin);
|
||||
},
|
||||
|
||||
//=========================================================================
|
||||
@@ -165,7 +161,6 @@ console.log("ADD DIRECT LOGIN", aDirectLogin);
|
||||
|
||||
// this.render();
|
||||
|
||||
console.log("CardDetail.showCard", aCard);
|
||||
deferredResult = new Clipperz.Async.Deferred("CardDetail.showCard", {trace:false});
|
||||
deferredResult.addMethod(aCard, 'label');
|
||||
deferredResult.addMethod(this, 'setTitle');
|
||||
@@ -266,7 +261,6 @@ console.log("CardDetail.showCard", aCard);
|
||||
var nextState;
|
||||
var fieldValue;
|
||||
|
||||
//console.log("TOGGLE");
|
||||
anEvent.preventDefault;
|
||||
fieldValue = MochiKit.Selector.findChildElements(anEvent.src().parentNode.parentNode, ['span.password'])[0];
|
||||
|
||||
|
||||
@@ -1,25 +1,23 @@
|
||||
/*
|
||||
|
||||
Copyright 2008-2011 Clipperz Srl
|
||||
Copyright 2008-2013 Clipperz Srl
|
||||
|
||||
This file is part of Clipperz Community Edition.
|
||||
Clipperz Community Edition is an online password manager.
|
||||
This file is part of Clipperz, the online password manager.
|
||||
For further information about its features and functionalities please
|
||||
refer to http://www.clipperz.com.
|
||||
|
||||
* Clipperz Community Edition is free software: you can redistribute
|
||||
it and/or modify it under the terms of the GNU Affero General Public
|
||||
License as published by the Free Software Foundation, either version
|
||||
3 of the License, or (at your option) any later version.
|
||||
* Clipperz is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
* Clipperz Community Edition is distributed in the hope that it will
|
||||
be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* Clipperz is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Affero General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU Affero General Public
|
||||
License along with Clipperz Community Edition. If not, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
License along with Clipperz. If not, see http://www.gnu.org/licenses/.
|
||||
|
||||
*/
|
||||
|
||||
@@ -90,7 +88,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.CardList, Clipperz.PM.UI.C
|
||||
'favicon': MochiKit.Base.methodcaller('favicon')
|
||||
};
|
||||
|
||||
//console.log("someCards", someCards);
|
||||
deferredResult = new Clipperz.Async.Deferred("CardList.showCards", {trace:false});
|
||||
deferredResult.addCallback(MochiKit.Base.map, Clipperz.Async.collectResults("CardList.value - collectResults", cardInfo, {trace:false}));
|
||||
deferredResult.addCallback(Clipperz.Async.collectAll);
|
||||
@@ -102,7 +99,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.CardList, Clipperz.PM.UI.C
|
||||
},
|
||||
|
||||
'appendCardToList': function (aCardListElement, aCardInfo) {
|
||||
//console.log("appendCardToList", aCardInfo);
|
||||
this.append(aCardListElement, {tag:'li', cls:'cardListItem arrow', cardreference:aCardInfo['_reference'], children:[
|
||||
{tag:'a', href:'#', html:aCardInfo['label'], children:[
|
||||
{tag:'small', cls:'favicon', children:[{tag:'img', cls:'favicon', src:aCardInfo['favicon']}]}
|
||||
@@ -121,7 +117,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.CardList, Clipperz.PM.UI.C
|
||||
listElement = MochiKit.DOM.getFirstParentByTagAndClassName(anEvent.target(), tagName='li', className='cardListItem');
|
||||
}
|
||||
cardReference = MochiKit.DOM.getNodeAttribute(listElement, 'cardreference');
|
||||
console.log("###", listElement, cardReference);
|
||||
// TODO: Notify card with reference MochiKit.DOM.getNodeAttribute(listElement, 'cardreference') has been selected
|
||||
MochiKit.Signal.signal(this, 'selectedCard', cardReference);
|
||||
},
|
||||
@@ -171,7 +166,6 @@ console.log("###", listElement, cardReference);
|
||||
var cardListReference;
|
||||
|
||||
cardListReference = anEvent.target().id.match(/(cardListReference_|cardListItem_)(.*)/)[2];
|
||||
//console.log("Showing detail for card named", cardListReference);
|
||||
MochiKit.Signal.signal(this, 'selectedCard', cardListReference);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,25 +1,23 @@
|
||||
/*
|
||||
|
||||
Copyright 2008-2011 Clipperz Srl
|
||||
Copyright 2008-2013 Clipperz Srl
|
||||
|
||||
This file is part of Clipperz Community Edition.
|
||||
Clipperz Community Edition is an online password manager.
|
||||
This file is part of Clipperz, the online password manager.
|
||||
For further information about its features and functionalities please
|
||||
refer to http://www.clipperz.com.
|
||||
|
||||
* Clipperz Community Edition is free software: you can redistribute
|
||||
it and/or modify it under the terms of the GNU Affero General Public
|
||||
License as published by the Free Software Foundation, either version
|
||||
3 of the License, or (at your option) any later version.
|
||||
* Clipperz is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
* Clipperz Community Edition is distributed in the hope that it will
|
||||
be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* Clipperz is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Affero General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU Affero General Public
|
||||
License along with Clipperz Community Edition. If not, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
License along with Clipperz. If not, see http://www.gnu.org/licenses/.
|
||||
|
||||
*/
|
||||
|
||||
@@ -139,7 +137,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.LoginForm, Clipperz.PM.UI.
|
||||
},
|
||||
|
||||
'showErrors': function (args) {
|
||||
//console.log("LoginForm.showErrors", args);
|
||||
if (args['previousFailedAttempt'] == 'LOGIN') {
|
||||
this.setErrorMessage("Wrong credentials");
|
||||
} else if (args['previousFailedAttempt'] == 'PIN') {
|
||||
@@ -299,7 +296,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.LoginForm, Clipperz.PM.UI.
|
||||
},
|
||||
|
||||
'submitCredentialsHandler': function (anEvent) {
|
||||
//console.log("submitCredentialsHandler");
|
||||
var credentials;
|
||||
|
||||
this.setMessage(null);
|
||||
@@ -331,24 +327,19 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.LoginForm, Clipperz.PM.UI.
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
'initProgressHandle': function (anEvent) {
|
||||
//console.log("** initProgressHandle", anEvent);
|
||||
this._steps = anEvent['steps'];
|
||||
this._actualSteps = 0;
|
||||
},
|
||||
|
||||
'updateProgressHandle': function (anEvent) {
|
||||
//console.log("** updateProgressHandle", anEvent);
|
||||
this._steps += anEvent['extraSteps'];
|
||||
},
|
||||
|
||||
'advanceProgressHandle': function (anEvent) {
|
||||
//console.log("** advanceProgressHandle", anEvent);
|
||||
this._actualSteps ++;
|
||||
//console.log("STEPS: " + this._actualSteps + "/" + this._steps);
|
||||
},
|
||||
|
||||
'progressDoneHandle': function (anEvent) {
|
||||
//console.log("** progressDoneHandle", anEvent);
|
||||
},
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user