mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
added overlayMessage(...) function...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3c6ef839aa
commit
671dfc0a02
@ -46,6 +46,7 @@ body {
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// XXX stub DnD handlers...
|
// XXX stub DnD handlers...
|
||||||
$(document)
|
$(document)
|
||||||
.bind('dragover', function(e){
|
.bind('dragover', function(e){
|
||||||
@ -54,7 +55,7 @@ $(document)
|
|||||||
// XXX is there a jQuery way out of this??
|
// XXX is there a jQuery way out of this??
|
||||||
e.originalEvent.dataTransfer.dropEffect = 'copy' // Explicitly show this is a copy.
|
e.originalEvent.dataTransfer.dropEffect = 'copy' // Explicitly show this is a copy.
|
||||||
|
|
||||||
showInOverlay($('<div class="overlay-message">Drop files anywhere on the the screen...</div>'))
|
overlayMessage('Drop files anywhere on the the screen...')
|
||||||
})
|
})
|
||||||
.bind('drop', function(e){
|
.bind('drop', function(e){
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
|
|||||||
@ -374,7 +374,6 @@ function toKeyName(code){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// show a jQuary opject in viewer overlay...
|
// show a jQuary opject in viewer overlay...
|
||||||
// XXX need to set .scrollTop(0) when showing different UI...
|
// XXX need to set .scrollTop(0) when showing different UI...
|
||||||
// ...and not set it when the UI is the same
|
// ...and not set it when the UI is the same
|
||||||
@ -400,6 +399,13 @@ function showInOverlay(obj){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function overlayMessage(text){
|
||||||
|
return showInOverlay($('<div class="overlay-message">' +text+ '</div>'))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// XXX revise!!
|
// XXX revise!!
|
||||||
function showOptionsUI(data, get_value, get_handler){
|
function showOptionsUI(data, get_value, get_handler){
|
||||||
var tree = {}
|
var tree = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user