mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 01:50:07 +00:00
Compare commits
No commits in common. "ec195505cc0f1de2260f7014e59f127ba1269b58" and "1fe978703f31a55d355ffbb9064d57b9bd101a79" have entirely different histories.
ec195505cc
...
1fe978703f
@ -357,9 +357,7 @@ var templates = {
|
|||||||
// body...
|
// body...
|
||||||
// XXX only do this if we have nested elements...
|
// XXX only do this if we have nested elements...
|
||||||
elem.collapsed = true
|
elem.collapsed = true
|
||||||
|
|
||||||
elem.ignore = true
|
|
||||||
|
|
||||||
// button...
|
// button...
|
||||||
return header },
|
return header },
|
||||||
// XXX focus button -- see todo...
|
// XXX focus button -- see todo...
|
||||||
@ -534,7 +532,6 @@ var quoted = {
|
|||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
// XXX add ability to skip subtree from status calculation...
|
|
||||||
var tasks = {
|
var tasks = {
|
||||||
__proto__: plugin,
|
__proto__: plugin,
|
||||||
|
|
||||||
@ -561,8 +558,6 @@ var tasks = {
|
|||||||
return res }, {})) },
|
return res }, {})) },
|
||||||
|
|
||||||
// State...
|
// State...
|
||||||
// NOTE: this will not count checkboxes under '[ignore]', this is
|
|
||||||
// useful for not ounting items withing templates and the like...
|
|
||||||
updateStatus: function(editor, node){
|
updateStatus: function(editor, node){
|
||||||
node = editor.get(node)
|
node = editor.get(node)
|
||||||
if(node == null){
|
if(node == null){
|
||||||
@ -571,16 +566,10 @@ var tasks = {
|
|||||||
.querySelector('.view')
|
.querySelector('.view')
|
||||||
.querySelector('.completion')
|
.querySelector('.completion')
|
||||||
if(state){
|
if(state){
|
||||||
var checkboxes =
|
|
||||||
node.querySelectorAll('input[type=checkbox]').length
|
|
||||||
// XXX should we check ignore value here???
|
|
||||||
- node.querySelectorAll('[ignore] input[type=checkbox]').length
|
|
||||||
var checkboxes_checked =
|
|
||||||
node.querySelectorAll('input[type=checkbox]:checked').length
|
|
||||||
// XXX should we check ignore value here???
|
|
||||||
- node.querySelectorAll('[ignore] input[type=checkbox]:checked').length
|
|
||||||
var c =
|
var c =
|
||||||
((checkboxes_checked / checkboxes) * 100)
|
((node.querySelectorAll('input[type=checkbox]:checked').length
|
||||||
|
/ node.querySelectorAll('input[type=checkbox]').length)
|
||||||
|
* 100)
|
||||||
.toFixed(0)
|
.toFixed(0)
|
||||||
!isNaN(c)
|
!isNaN(c)
|
||||||
&& state.setAttribute('completion', c +'%') }
|
&& state.setAttribute('completion', c +'%') }
|
||||||
@ -1056,7 +1045,6 @@ var JSONOutline = {
|
|||||||
__block_attrs__: {
|
__block_attrs__: {
|
||||||
id: 'attr',
|
id: 'attr',
|
||||||
collapsed: 'attr',
|
collapsed: 'attr',
|
||||||
ignore: 'attr',
|
|
||||||
focused: 'cls',
|
focused: 'cls',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -50,7 +50,6 @@ var setup = function(){
|
|||||||
-
|
-
|
||||||
- ## Bugs:
|
- ## Bugs:
|
||||||
focused:: true
|
focused:: true
|
||||||
- BUG: refreshes under FF sometimes produce partial/inconsistent views...
|
|
||||||
- BUG: need to account for hidden elements when cursoring between elements
|
- BUG: need to account for hidden elements when cursoring between elements
|
||||||
- to reproduce::
|
- to reproduce::
|
||||||
- XXX move from/to this element
|
- XXX move from/to this element
|
||||||
@ -211,18 +210,10 @@ var setup = function(){
|
|||||||
- [ ] B
|
- [ ] B
|
||||||
- [ ] C
|
- [ ] C
|
||||||
- and a shorthand for todo:
|
- and a shorthand for todo:
|
||||||
- TODO in lists like this new items will be created with a todo
|
- TODO in lists like this new items will be created with a todo template
|
||||||
template automatically (???)
|
|
||||||
- [ ] A
|
- [ ] A
|
||||||
- [ ] B
|
- [ ] B
|
||||||
- [ ] C
|
- [ ] C
|
||||||
- Need to ignore the template subtree in `[%]` calculation... DONE
|
|
||||||
collapsed:: true
|
|
||||||
- Example [%] (should be 50%)
|
|
||||||
- TEMPLATE new
|
|
||||||
- [ ]
|
|
||||||
- [x] Done
|
|
||||||
- [ ] Undone
|
|
||||||
- Time to think about a standalone client -- at least to edit own notes as a test...
|
- Time to think about a standalone client -- at least to edit own notes as a test...
|
||||||
- _also this would be a nice opportunity to start the move to a newer electron version_
|
- _also this would be a nice opportunity to start the move to a newer electron version_
|
||||||
- Deployment:
|
- Deployment:
|
||||||
@ -735,7 +726,7 @@ var setup = function(){
|
|||||||
- [ ] ASAP
|
- [ ] ASAP
|
||||||
- [ ]
|
- [ ]
|
||||||
-
|
-
|
||||||
- Q: should we include button text in item???
|
- [ ] example item
|
||||||
- Attributes:
|
- Attributes:
|
||||||
id:: attributes
|
id:: attributes
|
||||||
- collapsed
|
- collapsed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user