]> git.openstreetmap.org Git - osqa.git/commitdiff
the variable needs to be defined with var in front of it, because otherwise it is...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 26 Apr 2012 13:18:41 +0000 (13:18 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 26 Apr 2012 13:18:41 +0000 (13:18 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1256 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/media/js/osqa.main.js
forum/skins/default/templates/node/award_points.html

index c8b87831482925b33474d74c9b0418ab810f261f..0122c2576910865bfff2e7529358c252819d500d 100644 (file)
@@ -210,7 +210,8 @@ function show_dialog (extern) {
 \r
     html += '<button class="dialog-yes"' + copy_id + '>' + options.yes_text + '</button>' + '</div></div>';\r
 \r
 \r
     html += '<button class="dialog-yes"' + copy_id + '>' + options.yes_text + '</button>' + '</div></div>';\r
 \r
-    $dialog = $(html);\r
+    var $dialog = $(html);\r
+\r
     $('body').append($dialog);\r
     var message = $('.dialog-content')[0];\r
     message.style.visibility = "hidden";\r
     $('body').append($dialog);\r
     var message = $('.dialog-content')[0];\r
     message.style.visibility = "hidden";\r
index d3e49363101c2fbcfba95c40e288335b8f07d288..a23ac5488daf039ffd81278737cd3537f6b757c9 100644 (file)
                 html: message,
                 extra_class: 'confirm',
                 yes_text: messages.yes,
                 html: message,
                 extra_class: 'confirm',
                 yes_text: messages.yes,
-                no_callback: function() {
-                    $(".dialog").fadeOut("fast", function() {
-                        $('.dialog').remove();
-                    })
-                },
                 show_no: true,
                 no_text: messages.no
             }
                 show_no: true,
                 no_text: messages.no
             }