summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Runge <mrunge@redhat.com>2015-06-23 14:49:11 +0200
committerMatthias Runge <mrunge@redhat.com>2015-07-15 12:58:29 +0200
commitdbb9c0957a5485a0a86f982c61eeb6b8c44cf3b9 (patch)
treefb7b3c9b1198ce558ea0f5fe52fa142c42f402a1
parentb0af286503ba5f26235506e135ed78d70d3e97c1 (diff)
downloadhorizon-dbb9c0957a5485a0a86f982c61eeb6b8c44cf3b9.tar.gz
Change widget attribute to string
In Django 1.8, widget attribute data-date-picker=True will be rendered as 'data-date-picker'. This patch will just look for the presence of the attribute, ignoring the actual value. Change-Id: I0beabddfe13c060ef2222a09636738428135040a Closes-Bug: #1467935 (cherry picked from commit f4581dd48a7ffdcdf1b0061951e837c69caf9420)
-rw-r--r--horizon/static/horizon/js/horizon.metering.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/static/horizon/js/horizon.metering.js b/horizon/static/horizon/js/horizon.metering.js
index c4c9a4d41..b976f30ab 100644
--- a/horizon/static/horizon/js/horizon.metering.js
+++ b/horizon/static/horizon/js/horizon.metering.js
@@ -1,6 +1,6 @@
horizon.metering = {
init_create_usage_report_form: function() {
- horizon.datepickers.add('input[data-date-picker="True"]');
+ horizon.datepickers.add('input[data-date-picker]');
horizon.metering.add_change_event_to_period_dropdown();
horizon.metering.show_or_hide_date_fields();
},