Initial draft of card editing mode
Still very early draft with tons of issues still to address, and no styling at all. Disabled CSS preprocessor, due to limitations in Python SCSS processor. Updated date Copyright notice.
This commit is contained in:
@@ -29,21 +29,9 @@ Clipperz.PM.UI.Components.DialogBox = React.createClass({
|
||||
'info': React.PropTypes.object.isRequired,
|
||||
'deferred': React.PropTypes.object.isRequired
|
||||
},
|
||||
/*
|
||||
ask: function (someInfo) {
|
||||
var deferredResult;
|
||||
|
||||
deferredResult = new Clipperz.Async.Deferred('DialogBox.ask', {trace:false});
|
||||
deferredResult.addCallback(someInfo['possibleAnswers']['cancel']['answer']);
|
||||
deferredResult.callback();
|
||||
// deferredResult.cancel();
|
||||
|
||||
return deferredResult;
|
||||
},
|
||||
*/
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
handleKeyDown: function (anEvent) {
|
||||
console.log("DIALOG BOX - key DOWN", anEvent);
|
||||
},
|
||||
@@ -55,13 +43,10 @@ console.log("DIALOG BOX - key PRESS", anEvent);
|
||||
handleKeyUp: function (anEvent) {
|
||||
console.log("DIALOG BOX - key UP", anEvent);
|
||||
},
|
||||
|
||||
*/
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
handleAnswerButton: function (anEvent) {
|
||||
//console.log("HANDLE ANSWER BUTTON", anEvent.currentTarget.dataset['answerKey']);
|
||||
//console.log("ANSWER INFO", this.props['info']['possibleAnswers'][anEvent.currentTarget.dataset['answerKey']]);
|
||||
//console.log("<-- DEFERRED", this.props['deferred']);
|
||||
this.props['info']['possibleAnswers'][anEvent.currentTarget.dataset['answerKey']]['answer'](this.props['deferred']);
|
||||
},
|
||||
|
||||
@@ -78,9 +63,7 @@ console.log("DIALOG BOX - key UP", anEvent);
|
||||
//=========================================================================
|
||||
|
||||
render: function () {
|
||||
//console.log("DIALOG BOX", this.props);
|
||||
//console.log("--> DEFERRED", this.props['deferred']);
|
||||
return React.DOM.div({'className':'dialogBox', 'onKeyDown':this.handleKeyDown, 'onKeyPress':this.handleKeyPress, 'onKeyUp':this.handleKeyUp}, [
|
||||
return React.DOM.div({'className':'dialogBox' /*, 'onKeyDown':this.handleKeyDown, 'onKeyPress':this.handleKeyPress, 'onKeyUp':this.handleKeyUp */ }, [
|
||||
React.DOM.div({'className':'mask'}),
|
||||
React.DOM.div({'className':'dialog'}, [
|
||||
React.DOM.h3({'className': 'message'}, this.props['info']['question']),
|
||||
|
||||
Reference in New Issue
Block a user