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

View File

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