Skip to content

Commit d10bef4

Browse files
committed
v1.0.1
- Minor fixes - UI Improvements
1 parent 7dff5cc commit d10bef4

File tree

6 files changed

+14
-16
lines changed

6 files changed

+14
-16
lines changed

blockbee/meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from distutils.version import StrictVersion
22

3-
VERSION = StrictVersion('1.0.0')
3+
VERSION = StrictVersion('1.0.1')

blockbee/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
44

5-
SECRET_KEY = '//CrypyAPI_TEST_KEY//'
5+
SECRET_KEY = '//BlockBee_TEST_KEY//'
66

77
DEBUG = True
88

blockbee/static/blockbee/blockbee.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,26 @@ function check_status(id) {
2727
waiting_payment.addClass('done');
2828
waiting_network.addClass('done');
2929
jQuery('.blockbee_loader').remove();
30-
jQuery('.blockbee_notification_refresh').remove();
31-
jQuery('.blockbee_notification_cancel').remove();
30+
jQuery('.blockbee_payment_notification').remove();
3231

3332
setTimeout(function () {
34-
jQuery('.blockbee_payments_wrapper').slideUp('400');
35-
jQuery('.blockbee_payment_processing').slideDown('400');
36-
}, 5000);
33+
jQuery('.blockbee_payments_wrapper').slideUp('200');
34+
jQuery('.blockbee_payment_processing').slideDown('200');
35+
}, 300);
3736
}
3837

3938
if (data.data.is_paid === 1) {
4039
waiting_payment.addClass('done');
4140
waiting_network.addClass('done');
4241
payment_done.addClass('done');
4342
jQuery('.blockbee_loader').remove();
44-
jQuery('.blockbee_notification_refresh').remove();
45-
jQuery('.blockbee_notification_cancel').remove();
43+
jQuery('.blockbee_payment_notification').remove();
4644

4745
setTimeout(function () {
48-
jQuery('.blockbee_payments_wrapper').slideUp('400');
49-
jQuery('.blockbee_payment_processing').slideUp('400');
50-
jQuery('.blockbee_payment_confirmed').slideDown('400');
51-
}, 5000);
46+
jQuery('.blockbee_payments_wrapper').slideUp('200');
47+
jQuery('.blockbee_payment_processing').slideUp('200');
48+
jQuery('.blockbee_payment_confirmed').slideDown('200');
49+
}, 300);
5250

5351
is_paid = true;
5452
}
@@ -96,7 +94,7 @@ function check_status(id) {
9694
}
9795
});
9896

99-
setTimeout(status_loop, 5000);
97+
setTimeout(status_loop, 2000);
10098
}
10199

102100
status_loop();

blockbee/templatetags/cryptapi_helper.py renamed to blockbee/templatetags/blockbee_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
register = template.Library()
44

55

6-
@register.inclusion_tag('cryptapi/payment.html', takes_context=True)
6+
@register.inclusion_tag('blockbee/payment.html', takes_context=True)
77
def generate_payment_template(context):
88
return {
99
'req': context['req'],

store/templates/payment.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'base.html' %}
2-
{% load cryptapi_helper %}
2+
{% load blockbee_helper %}
33
{% block content %}
44
{% generate_payment_template %}
55
{% endblock %}

0 commit comments

Comments
 (0)