Skip to content

Commit

Permalink
Merge pull request #270 from vrk-kpa/LIKA-421_fix-sentry-errors
Browse files Browse the repository at this point in the history
LIKA-421: Fix xroad-stats date picker
  • Loading branch information
bzar authored Jun 15, 2022
2 parents ab5b744 + f8bc592 commit edf4f75
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
12 changes: 0 additions & 12 deletions ansible/roles/ckan/files/patches/fix_bootstrap_font_path.patch

This file was deleted.

3 changes: 1 addition & 2 deletions ansible/roles/ckan/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ ckan_patches:
- { file: "alert_fix" }
- { file: "csrf" }
- { file: "disable_leftover_with_capacity" }
- { file: "fix_bootstrap_font_path" }
- { file: "mark_main_nav_active_on_subpages" } # https://github.com/ckan/ckan/pull/5551
- { file: "remove_edit_button_from_slugs" }
- { file: "remove_gravatar" }
Expand Down Expand Up @@ -54,4 +53,4 @@ ckan_uwsgi_conf: /etc/ckan/default/ckan-uwsgi.ini
blocked_bots:
- PetalBot
- AhrefsBot
- SemrushBot
- SemrushBot
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
this.ckan.module('datepicker', function (jQuery, _) {
return {
initialize: function () {
jQuery.proxyAll(this, /_on/);
this.el.ready(this._onReady);
},

_onReady: function() {
var editor = $(this.el).datetimepicker();
}
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ datetimepicker_js:
- base/main
contents:
- datetimepicker/bootstrap-datetimepicker.js
- datetimepicker/datepicker.js
- javascript/datepicker.js

datetimepicker_css:
output: ckanext-apicatalog/%(version)s_datetimepicker.css
Expand Down

0 comments on commit edf4f75

Please sign in to comment.