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