From f9be212f2ca747cdf0a1c752d6a764603b075e1c Mon Sep 17 00:00:00 2001 From: Bohdan Ganicky Date: Mon, 19 Jan 2009 17:04:20 +0000 Subject: demos/droppable/photo_manager: fixed modal dialog displaying on the demo index --- demos/droppable/photo_manager.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'demos/droppable') diff --git a/demos/droppable/photo_manager.html b/demos/droppable/photo_manager.html index 47e656c3f..4fb2516f4 100644 --- a/demos/droppable/photo_manager.html +++ b/demos/droppable/photo_manager.html @@ -80,11 +80,11 @@ // image preview function, demonstrating the ui.dialog used as a modal window function viewLargerImage($link) { - var src = $link[0].href; + var src = $link.attr('href'); var title = $link.siblings('img').attr('alt'); - var $modal = $('img[src="'+src+'"]'); + var $modal = $('img[src$="'+src+'"]'); - $modal.length ? $modal.dialog('open') : $(''+title+'').appendTo('body').dialog({ + $modal.length ? $modal.dialog('open') : $(''+title+'').attr('src',src).appendTo('body').dialog({ title: title, width: '400px', modal: 'true', @@ -131,7 +131,7 @@
  • High Tatras 3
    - Planning the ascend + Planning the ascent View larger Delete image
  • -- cgit v1.2.3