first commit
This commit is contained in:
28
apps/frontend/modules/stUser/templates/_ajaxLoginModal.php
Normal file
28
apps/frontend/modules/stUser/templates/_ajaxLoginModal.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
$smarty->display('user_ajax_login_modal.html');
|
||||
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function ($) {
|
||||
$(document).ready(function() {
|
||||
|
||||
$( "#ajax-login-button" ).click(function() {
|
||||
showAjaxLoginFormModal();
|
||||
});
|
||||
|
||||
|
||||
function showAjaxLoginFormModal()
|
||||
{
|
||||
$('#ajax-login-form-modal').modal('show');
|
||||
|
||||
$.get('<?php echo url_for('stUser/ajaxLoginForm') ?>', function(data) {
|
||||
|
||||
$('#ajax-login-form').html(data);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user