Commit bd80b0a094c3b3dc85d10093ca1390ab2ee35085

  • avatar
  • p4bl0 <pablo.rauzy @gm…l.com>
  • Wed Jun 24 14:45:28 CEST 2009
really added a 'canceled' state this time ^^
  
3535 var i = 0, tmp1, tmp2 = html;
3636 do {
3737 tmp1 = tmp2; i++;
38 tmp2 = tmp1.replace(/(^|[^>]):(todo|started|done)/,
38 tmp2 = tmp1.replace(/(^|[^>]):(todo|started|done|canceled)/,
3939 '$1<span class="state $2" id="'+tid+'-state-'+i+'">:$2</span>');
4040 } while (tmp1 != tmp2);
4141 html = tmp2;
4646TwoTwoDo.utils.html2txt = function (html) {
4747 var txt = html.replace(/<br( \/)?>/g, '\n');
4848 txt = txt.replace(/#<span class="memowiki">([a-zA-Z0-9]*)<\/span>/g, '#$1');
49 txt = txt.replace(/<span class="state (todo|started|done)" id=".*?-state-[0-9]+">:
49 txt = txt.replace(/<span class="state (todo|started|done|canceled)" id=".*?-state-[0-9]+">:
5050 return txt;
5151};
5252
6969 },
7070 cur_memo: 'memo',
7171 memo: {
72 'memo': 'This is the MemoWiki content for the \'memo\' hashtag :-)<br />Like tasks, memo can contains state markers and hashtag links to other memo.<br /><br />Write #another memo [<span class="state todo" id="iu-1-state-0">:todo</span>]'
72 'memo': 'This is the MemoWiki content for the \'memo\' hashtag :-)<br />Like tasks, memo can contains state markers and hashtag links to other memo.<br /><br />Write #another memo [<span class="state todo" id="memo-state-0">:todo</span>]'
7373 }
7474};
7575