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:
@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user