diff --git a/templates/client/accounts/calendar.html b/templates/client/accounts/calendar.html
index 4b12759f..261d1bfd 100644
--- a/templates/client/accounts/calendar.html
+++ b/templates/client/accounts/calendar.html
@@ -25,60 +25,31 @@
-
-
{{ days.15|date:"F"}}’{{ days.15|date:"y"}}
- {% include 'includes/accounts/calendar_list.html' with events=events %}
-
-
-
-
{% trans 'Все / выделенные:' %}
-
-
-
-
+ {% if events|length > 0 %}
+
+
{{ days.15|date:"F"}}’{{ days.15|date:"y"}}
+ {% include 'includes/accounts/calendar_list.html' with events=events %}
+
+
+
+
{% trans 'Все / выделенные:' %}
+
+
+
+ {% endif %}
-
-
{% endblock %}
{% block scripts %}
diff --git a/templates/client/static_client/js/_modules/page.profile.calendar.js b/templates/client/static_client/js/_modules/page.profile.calendar.js
index 87664b39..c158f40d 100644
--- a/templates/client/static_client/js/_modules/page.profile.calendar.js
+++ b/templates/client/static_client/js/_modules/page.profile.calendar.js
@@ -14,6 +14,33 @@ if (EXPO.profile.calendar) {
that.opt = {}; //свойства по умолчанию
//private
$(function () {
+ /**
+ * events list below calendar
+ */
+ $('#btn_delete').on('click', function(e){
+ e.preventDefault();
+ var expos = $("input[name=expo]:checkbox:checked").map(function(){
+ return $(this).val();
+ }).get();
+ var confs = $("input[name=conf]:checkbox:checked").map(function(){
+ return $(this).val();
+ }).get();
+ var seminars = $("input[name=seminar]:checkbox:checked").map(function(){
+ return $(this).val();
+ }).get();
+ var webinars = $("input[name=webinar]:checkbox:checked").map(function(){
+ return $(this).val();
+ }).get();
+ var sendData = {'expo': JSON.stringify(expos),
+ 'conf':JSON.stringify(confs),
+ 'seminar':JSON.stringify(seminars),
+ 'webinar': JSON.stringify(webinars)}
+ $.get('/profile/calendar/remove/', sendData, function(data){
+ if(data.success){
+ location.reload();
+ }
+ })
+ });
});
// methods