added overlayMessage(...) function...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-08-25 03:16:44 +04:00
parent 3c6ef839aa
commit 671dfc0a02
2 changed files with 9 additions and 2 deletions

View File

@ -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()

View File

@ -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 = {}