- Avoid author names or initials in code

- Better naming for new class
This commit is contained in:
Marc Delisle
2011-03-08 12:24:35 -05:00
parent a5dfc6006d
commit 689ed6e633

View File

@@ -2000,13 +2000,13 @@ $(document).ready(function() {
* Attach Ajax event handler on the change password anchor * Attach Ajax event handler on the change password anchor
* @see $cfg['AjaxEnable'] * @see $cfg['AjaxEnable']
*/ */
$('#change_password_anchor.obh').live('click',function(event) { $('#change_password_anchor.dialog_active').live('click',function(event) {
event.preventDefault(); event.preventDefault();
return false; return false;
}); });
$('#change_password_anchor.ajax').live('click', function(event) { $('#change_password_anchor.ajax').live('click', function(event) {
event.preventDefault(); event.preventDefault();
$(this).removeClass('ajax').addClass('obh'); $(this).removeClass('ajax').addClass('dialog_active');
/** /**
* @var button_options Object containing options to be passed to jQueryUI's dialog * @var button_options Object containing options to be passed to jQueryUI's dialog
*/ */
@@ -2019,7 +2019,7 @@ $(document).ready(function() {
width: 600, width: 600,
close: function(ev,ui) {$(this).remove();}, close: function(ev,ui) {$(this).remove();},
buttons : button_options, buttons : button_options,
beforeClose: function(ev,ui){ $('#change_password_anchor.obh').removeClass('obh').addClass('ajax')} beforeClose: function(ev,ui){ $('#change_password_anchor.dialog_active').removeClass('dialog_active').addClass('ajax')}
}) })
.append(data); .append(data);
displayPasswordGenerateButton(); displayPasswordGenerateButton();
@@ -2055,7 +2055,7 @@ $(document).ready(function() {
$("#topmenucontainer").after(data.sql_query); $("#topmenucontainer").after(data.sql_query);
$("#change_password_dialog").hide().remove(); $("#change_password_dialog").hide().remove();
$("#edit_user_dialog").dialog("close").remove(); $("#edit_user_dialog").dialog("close").remove();
$('#change_password_anchor.obh').removeClass('obh').addClass('ajax'); $('#change_password_anchor.dialog_active').removeClass('dialog_active').addClass('ajax');
} }
else { else {
PMA_ajaxShowMessage(data.error); PMA_ajaxShowMessage(data.error);