From: qw3rty Date: Mon, 28 Jun 2010 16:44:21 +0000 (+0000) Subject: I don't think this was an issue but it was annoying me. I made it so the the text... X-Git-Tag: live~668 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/1466fc2b08115122396e0cdf6871287db2e5317c I don't think this was an issue but it was annoying me. I made it so the the text in the dialog box becomes visible after the animation. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@466 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/skins/default/media/js/osqa.main.js b/forum/skins/default/media/js/osqa.main.js index e2a5e87..0a8b86e 100644 --- a/forum/skins/default/media/js/osqa.main.js +++ b/forum/skins/default/media/js/osqa.main.js @@ -163,6 +163,8 @@ function show_dialog (extern) { $dialog = $(html); $('body').append($dialog); + var message = $('.dialog-content')[0]; + message.style.visibility = "hidden"; if (options.dim === false) { $dialog.css({ @@ -189,8 +191,10 @@ function show_dialog (extern) { left: "-=" + (options.dim.w / 2), width: options.dim.w, height: options.dim.h - }, 200); - + }, 200, function() { + message.style.visibility = "visible"; + }); + $dialog.find('.dialog-no').click(function() { default_close_function($dialog); });