|
@@ -262,61 +262,6 @@
|
|
|
</div> \
|
|
|
</div>';
|
|
|
$('#sys-modal-shop-basket-placeholder').html(html);
|
|
|
-
|
|
|
- // ---
|
|
|
- // var OrderForm = $('#sys-modal-shop-basket .modal-body .order-form form');
|
|
|
- // OrderForm.submit(function(e) {
|
|
|
- // if(OrderForm.hasClass('loading')) {
|
|
|
- // e.preventDefault();
|
|
|
- // return;
|
|
|
- // }
|
|
|
-
|
|
|
- // // Block send button
|
|
|
- // OrderForm.addClass('loading').addClass('alert-here');
|
|
|
- // var button = OrderForm.find('button[type=submit]');
|
|
|
- // button.addClass('progress-bar-striped')
|
|
|
- // .addClass('progress-bar-animated');
|
|
|
-
|
|
|
- // // Another button
|
|
|
- // if(button.attr('data-target') != '') {
|
|
|
- // $('#' + button.attr('data-target')).addClass('progress-bar-striped')
|
|
|
- // .addClass('progress-bar-animated');
|
|
|
- // }
|
|
|
-
|
|
|
- // // Clear form messages
|
|
|
- // form.find('.sys-messages').html('');
|
|
|
-
|
|
|
- // $.ajax({
|
|
|
- // type: "POST",
|
|
|
- // url: form.attr('action'),
|
|
|
- // data: form.serialize()
|
|
|
- // }).done(function(data) {
|
|
|
- // FormDataWasChanged = false;
|
|
|
- // if(IsDebugMode()) console.log('done', data);
|
|
|
- // AjaxDone(data)
|
|
|
- // }).fail(function(xhr, status, error) {
|
|
|
- // if(IsDebugMode()) console.log('fail', xhr, status, error);
|
|
|
- // AjaxFail(xhr.responseText, status, error);
|
|
|
- // }).always(function() {
|
|
|
- // // Add delay for one second
|
|
|
- // setTimeout(function() {
|
|
|
- // form.removeClass('loading').removeClass('alert-here');
|
|
|
- // button.removeClass('progress-bar-striped')
|
|
|
- // .removeClass('progress-bar-animated');
|
|
|
- // // Another button
|
|
|
- // if(button.attr('data-target') != '') {
|
|
|
- // $('#' + button.attr('data-target'))
|
|
|
- // .removeClass('progress-bar-striped')
|
|
|
- // .removeClass('progress-bar-animated');
|
|
|
- // }
|
|
|
- // }, 100);
|
|
|
- // });
|
|
|
-
|
|
|
- // // Prevent submit action
|
|
|
- // e.preventDefault();
|
|
|
- // });
|
|
|
- // ---
|
|
|
-
|
|
|
$("#sys-modal-shop-basket").modal({
|
|
|
backdrop: 'static',
|
|
|
keyboard: true,
|