docs: function (input, inst) {
              var appendText = this._get(inst, 'appendText');
              var isRTL = this._get(inst, 'isRTL');
              if (inst.append) { inst.append.remove(); }
              if (appendText) {
                  inst.append = $('<span class="' + this._appendClass + '">' + appendText + '</span>');
                  input[isRTL ? 'before' : 'after'](inst.append);
              }
              input.unbind('focus.timepicker', this._showTimepicker);
              input.unbind('click.timepicker', this._adjustZIndex);
  
              if (inst.trigger) { inst.trigger.remove(); }
  
              var showOn = this._get(inst, 'showOn');
              if (showOn == 'focus' || showOn == 'both') { // pop-up time picker when in the marked field
                  input.bind("focus.timepicker", this._showTimepicker);
                  input.bind("click.timepicker", this._adjustZIndex);
              }
              if (showOn == 'button' || showOn == 'both') { // pop-up time picker when 'button' element is clicked
                  var button = this._get(inst, 'button');
  
                  // Add button if button element is not set
                  if(button == null) {
                      button = $('<button class="ui-timepicker-trigger" type="button">...</button>');
                      input.after(button);
                  }
  
                  $(button).bind("click.timepicker", function () {
                      if ($.timepicker._timepickerShowing && $.timepicker._lastInput == input[0]) {
                          $.timepicker._hideTimepicker();
                      } else if (!inst.input.is(':disabled')) {
                          $.timepicker._showTimepicker(input[0]);
                      }
                      return false;
                  });
  
              }
          }