Posted by CLLCTV on March 26, 2011 at 6:50pm
2 followers
Jump to:
| Project: | Dialog API |
| Version: | 6.x-1.0-alpha2 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I ashamed that I have to post an issue for this, but I've tried everything.
I edited dialog.js, which I was sure would accomplish what I needed... but no:
/**
* Hide the modal
*/
Drupal.Dialog.dismiss = function() {
if (Drupal.Dialog.dialog) {
Drupal.Dialog.dialog.dialog('Something else besides close');
}
};I've even tried searching my entire codebase for 'close', and edited all of the instances of this string in the jquery.ui code, all without success. Please help if you can.
Comments
#1
I'm not sure I understand what you're trying to do but I think that it might be better to use the jQuery UI events rather than trying to replace the function: http://jqueryui.com/demos/dialog/#event-beforeClose
#2
Sorry that wasn't clear. I'm only trying to change the close link's text from "close" to "X".