code: function (period) {
        if (!this.settings.onDuplicatePeriod.call(this, period, this.element)) {
          var options = this.periodData(period);
          var position = Math.round(period.position().top / this.periodPosition);
          var height = Math.round(period.height() / this.periodPosition);
  
          var $this = this;
          $('.jqs-day', this.element).each(function (index, parent) {
            $this.add(parent, position, height, options);
          });
  
          this.closeOptions();
        }
      }
docs: Duplicate a period
  @param period