Newer
Older
GitBucket / src / main / twirl / gitbucket / core / helper / account.scala.html
@Naoki Takezoe Naoki Takezoe on 12 Dec 2015 563 bytes Fix right margin of account search box
@(id: String, width: Int)(implicit context: gitbucket.core.controller.Context)
@import context._
<span style="margin-right: 0px;">
  <input type="text" name="@id" id="@id" class="form-control" autocomplete="off" style="width: @{width}px; margin-bottom: 0px; display: inline; vertical-align: middle;"/>
</span>
<script>
$(function(){
  $('#@id').typeahead({
    source: function (query, process) {
      return $.get('@path/_user/proposals', { query: query },
        function (data) {
          return process(data.options);
        });
    }
  });
});
</script>