mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +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>
|
||||
|
||||
|
||||
// XXX stub DnD handlers...
|
||||
$(document)
|
||||
.bind('dragover', function(e){
|
||||
@ -54,7 +55,7 @@ $(document)
|
||||
// XXX is there a jQuery way out of this??
|
||||
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){
|
||||
e.stopPropagation()
|
||||
|
||||
@ -374,7 +374,6 @@ function toKeyName(code){
|
||||
}
|
||||
|
||||
|
||||
|
||||
// show a jQuary opject in viewer overlay...
|
||||
// XXX need to set .scrollTop(0) when showing different UI...
|
||||
// ...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!!
|
||||
function showOptionsUI(data, get_value, get_handler){
|
||||
var tree = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user