projects
/
infodrom
/
hallinta
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fa9997
)
Support prompting for ther values than pre-defined
author
Joey Schulze
<joey@infodrom.org>
Wed, 18 Jan 2012 00:13:49 +0000
(
01:13
+0100)
committer
Joey Schulze
<joey@infodrom.org>
Wed, 18 Jan 2012 00:13:49 +0000
(
01:13
+0100)
lib/functions.js
patch
|
blob
|
history
diff --git
a/lib/functions.js
b/lib/functions.js
index
327a2fb
..
69dea0e
100644
(file)
--- a/
lib/functions.js
+++ b/
lib/functions.js
@@
-544,6
+544,15
@@
function grid_cell_value()
this.grid.buffer.setValue(bufRow, this.col, this.visible);
+ if (this.value == 'prompt') {
+ var value = prompt(this.visible, '');
+ if (value === null)
+ return;
+
+ this.visible = value;
+ this.value = value;
+ }
+
var cell = this.grid.cell(this.row,this.col);
cell.innerHTML = this.visible;