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

drewish’s picture

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

__mark’s picture

Sorry that wasn't clear. I'm only trying to change the close link's text from "close" to "X".

devin carlson’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Dialog 6.x is no longer supported.