basic buttons now work...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
fbc7af8c05
commit
b4c6dc6107
@ -45,10 +45,11 @@
|
|||||||
Gallery(dom, urls[, options])
|
Gallery(dom, urls[, options])
|
||||||
```
|
```
|
||||||
- **Gallery: view crop**
|
- **Gallery: view crop**
|
||||||
- open/change/close
|
- ~~crop stack (a-la ImageGrid.Viewer)~~
|
||||||
- crop stack (a-la ImageGrid.Viewer)
|
- ~~GUI: basic buttons~~
|
||||||
- actions:
|
- ~~named crop~~
|
||||||
- "from selection"
|
- GUI: level indicators (a-la ImageGrid.Viewer)
|
||||||
|
- GUI: named crop list
|
||||||
- ~~Gallery: drag-n-drop~~
|
- ~~Gallery: drag-n-drop~~
|
||||||
- ~~drop files/images~~
|
- ~~drop files/images~~
|
||||||
- ~~drag to sort~~
|
- ~~drag to sort~~
|
||||||
|
|||||||
@ -104,8 +104,8 @@ For more info see: <a href="./README.md">README.md</a>
|
|||||||
<button onclick="gallery.remove('marked')" title="remove marked">select<sec>close</sec></button>
|
<button onclick="gallery.remove('marked')" title="remove marked">select<sec>close</sec></button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button onclick="gallery" title="crop marked">select<sec>crossword</sec></button>
|
<button onclick="gallery.crop('marked')" title="crop marked">select<sec>crossword</sec></button>
|
||||||
<button onclick="gallery" title="uncrop">select<sec>grid_on</sec></button>
|
<button onclick="gallery.uncrop()" title="uncrop">select<sec>grid_on</sec></button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button onclick="gallery.toggleQueueRemoval()" title="queue removal (del)">delete</button>
|
<button onclick="gallery.toggleQueueRemoval()" title="queue removal (del)">delete</button>
|
||||||
|
|||||||
@ -1103,15 +1103,13 @@ var Gallery = {
|
|||||||
var state = this.json()
|
var state = this.json()
|
||||||
stack.push(state)
|
stack.push(state)
|
||||||
if(lst){
|
if(lst){
|
||||||
lst = this.getImages(...lst)
|
state = this.json(this.getImages(lst)) }
|
||||||
// XXX filter state...
|
|
||||||
// XXX
|
|
||||||
}
|
|
||||||
this.load(state)
|
this.load(state)
|
||||||
return this },
|
return this },
|
||||||
uncrop: function(lst){
|
uncrop: function(lst){
|
||||||
var state = this.__crop_stack?.pop()
|
var state = this.__crop_stack?.pop()
|
||||||
state.length == 0
|
state
|
||||||
|
&& state.length == 0
|
||||||
&& (delete this.__crop_stack)
|
&& (delete this.__crop_stack)
|
||||||
state
|
state
|
||||||
&& this.load(state)
|
&& this.load(state)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user