MDL-19756 Migrated popup_form

This commit is contained in:
nicolasconnault
2009-07-30 03:47:12 +00:00
parent d14edf06ee
commit 496908435e
5 changed files with 372 additions and 254 deletions
+4 -4
View File
@@ -1186,8 +1186,9 @@ function init_help_icons() {
* @param string url The URL to forward to if YES is clicked. Disabled if fn is given
* @param function fn A JS function to run if YES is clicked.
*/
function confirm_dialog(event, message) {
function confirm_dialog(event, args) {
var message = args.message;
var target = this;
YAHOO.util.Event.preventDefault(event);
var simpledialog = new YAHOO.widget.SimpleDialog('confirmdialog',
@@ -1209,8 +1210,7 @@ function confirm_dialog(event, message) {
var handle_yes = function() {
this.hide();
var target = event.target;
if (target.tagName.toLowerCase() == 'a') {
window.location = target.href;
} else if (target.tagName.toLowerCase() == 'input') {