Skip to content

Commit

Permalink
use jquery-ui built in buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jdub233 committed Nov 15, 2016
1 parent b8274eb commit 52b67d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 5 additions & 0 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ function main() {
show: {
effect: "fade",
duration: 300
},
buttons: {
Close: function() {
$(this).dialog('close');
}
}
});

Expand Down
9 changes: 1 addition & 8 deletions templates/form-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,12 @@ class="form-control<?php echo (($field->required) ? ' required' : '') . $class;
$label_text = str_ireplace('opt-in policy', $opt_in_text, $label_text);

$modals[] = '
<div id="text-message-opt-in-modal" class="modal fade">
<div id="text-message-opt-in-modal" title="Text Message Opt-in Policy" class="modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Text Message Opt-in Policy</h4>
</div>
<div class="modal-body">
' . $section->fields[$field_index + 1]->helpText . '
</div>
<div class="modal-footer">
<button type="button" class="btn" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 52b67d2

Please sign in to comment.