Commit 5854f29c authored by Laura Schlimmer's avatar Laura Schlimmer
Browse files

init daterangepicker

parent b50763c8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -134,6 +134,7 @@

          //timeInput is optional and set by data-time-select attribute
          if (base.hasAttribute('data-time-select')) {
            console.log("render time input");
            base.renderTimeInput();
          }

+3 −1
Original line number Diff line number Diff line
@@ -109,6 +109,8 @@
        //1 hour
        this.setAttribute('data-daterange', 3600000);
      }

      this.updateDateTitle();
    };


@@ -145,7 +147,7 @@
    this.updateDateTitle = function() {
      var timestamp = parseInt(this.getAttribute('data-endtime'), 10);
      var date_range = parseInt(this.getAttribute('data-daterange'), 10);

      console.log(timestamp, date_range);
      var start_timestamp = timestamp - date_range;

      var title = this.shadowRoot.querySelector("span");