Mercurial > wiki
changeset 2:1d3d91674bbe
Users must hold down shift while clicking to edit.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 01 Feb 2009 12:51:45 -0800 |
parents | dd457cc7c596 |
children | ac7e15dcee69 |
files | wiki.js |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/wiki.js Sun Feb 01 12:45:55 2009 -0800 +++ b/wiki.js Sun Feb 01 12:51:45 2009 -0800 @@ -1,4 +1,7 @@ -function makeEditable() { +function makeEditable(aEvt) { + if (!aEvt.shiftKey) + return; + var item = this; var newItem = $('<textarea class="wikiedit"></textarea>'); $(newItem).attr("value", $(item).html());