1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Added image selection

This commit is contained in:
Dan Brown
2015-08-15 11:54:46 +01:00
parent 6e4764cde5
commit b0808a1c24
4 changed files with 20 additions and 7 deletions

View File

@ -9,7 +9,8 @@
images: [],
hasMore: false,
page: 0,
cClickTime: 0
cClickTime: 0,
selectedImage: false
},
created: function() {
@ -62,7 +63,7 @@
}
this.hide();
} else {
// Single Click
this.selectedImage = (this.selectedImage===image) ? false : image;
}
this.cClickTime = cTime;
},
@ -72,6 +73,12 @@
this.$$.overlay.style.display = 'block';
},
overlayClick: function(e) {
if(e.target.className==='overlay') {
this.hide();
}
},
hide: function() {
this.$$.overlay.style.display = 'none';
}