ctools-ajax-sample.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * Provide the HTML to create the modal dialog.
  3. */
  4. Drupal.theme.prototype.CToolsSampleModal = function () {
  5. var html = '';
  6. html += '<div id="ctools-modal" class="popups-box">';
  7. html += ' <div class="ctools-modal-content ctools-sample-modal-content">';
  8. html += ' <table cellpadding="0" cellspacing="0" id="ctools-face-table">';
  9. html += ' <tr>';
  10. html += ' <td class="popups-tl popups-border"></td>';
  11. html += ' <td class="popups-t popups-border"></td>';
  12. html += ' <td class="popups-tr popups-border"></td>';
  13. html += ' </tr>';
  14. html += ' <tr>';
  15. html += ' <td class="popups-cl popups-border"></td>';
  16. html += ' <td class="popups-c" valign="top">';
  17. html += ' <div class="popups-container">';
  18. html += ' <div class="modal-header popups-title">';
  19. html += ' <span id="modal-title" class="modal-title"></span>';
  20. html += ' <span class="popups-close"><a class="close" href="#">' + Drupal.CTools.Modal.currentSettings.closeText + '</a></span>';
  21. html += ' <div class="clear-block"></div>';
  22. html += ' </div>';
  23. html += ' <div class="modal-scroll"><div id="modal-content" class="modal-content popups-body"></div></div>';
  24. html += ' <div class="popups-buttons"></div>'; //Maybe someday add the option for some specific buttons.
  25. html += ' <div class="popups-footer"></div>'; //Maybe someday add some footer.
  26. html += ' </div>';
  27. html += ' </td>';
  28. html += ' <td class="popups-cr popups-border"></td>';
  29. html += ' </tr>';
  30. html += ' <tr>';
  31. html += ' <td class="popups-bl popups-border"></td>';
  32. html += ' <td class="popups-b popups-border"></td>';
  33. html += ' <td class="popups-br popups-border"></td>';
  34. html += ' </tr>';
  35. html += ' </table>';
  36. html += ' </div>';
  37. html += '</div>';
  38. return html;
  39. }