| @@ -83,17 +83,19 @@ | ||
| 83 | 83 | </table> |
| 84 | 84 | </div> |
| 85 | 85 | <?php } ?> |
| 86 | 86 | |
| 87 | + <?php echo JHtml::fetch('form.token'); ?> | |
| 88 | + | |
| 87 | 89 | <input type="hidden" name="option" value="com_vikbooking" /> |
| 88 | 90 | <input type="hidden" name="task" value="" /> |
| 89 | - <input type="hidden" name="return" value="<?php echo $this->returnLink; ?>" /> | |
| 91 | + <input type="hidden" name="return" value="<?php echo $this->escape($this->returnLink); ?>" /> | |
| 90 | 92 | |
| 91 | 93 | </form> |
| 92 | 94 | |
| 93 | 95 | <script> |
| 94 | 96 | |
| 95 | - jQuery(document).ready(function() { | |
| 97 | + jQuery(function() { | |
| 96 | 98 | |
| 97 | 99 | jQuery('#role-select').on('change', function() { |
| 98 | 100 | jQuery('.acl-role-container').hide(); |
| 99 | 101 | jQuery('#role-' + jQuery(this).val()).show(); |