MDL-19756 Migrated popup_form
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user