Skip to content
Snippets Groups Projects

Updated UI for new merge request

Merged Phil Hughes requested to merge mr-ui-update into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 1 class @Compare
    2 constructor: (@opts) ->
    3 @source_loading = $ ".js-source-loading"
    4 @target_loading = $ ".js-target-loading"
    5
    6 $('.js-compare-dropdown').each (i, dropdown) =>
    • I guess we could've made this a jquery plugin so we wouldn't have to loop. Oh wait you did. Why are we calling each on our own.

    • Author Maintainer

      We need it because each dropdown has a different field name and each dropdown does a different action when clicked

    • @iamphill right so you are assuming that no two drop downs will be the same. But even if they are not you could still add this here and not use it ever right?. But if we are releasing this to the open source community we might want to think about what other people might do. Fine for now but food for thought.

    • Author Maintainer

      But confused because this is exactly how we are doing the dropdowns for the filtering & the sidebar. Nothing new or different :confused:

    • Obviously it works and it's great. There's nothing to change now. But if we are making a jquery plugin for the world to see and use then maybe it should be in the style of a typical jquery plugin. That's all I am saying. Maybe not. Maybe our use case is typical enough.

      Again leave it for this merge request. But if we are doing things with bower and turning bower packages into gems then maybe this becomes a bower package and if so it should be ready for the big time.

      Great work @iamphill :sparkles:

    • Author Maintainer

      I get what you mean :thumbsup:

  • 147 163 filterInputBlur: @filterInputBlur
    148 164 remote: @options.filterRemote
    149 165 query: @options.data
    150 keys: @options.search.fields
    166 keys: search_fields
    167 elements: =>
    168 selector = ".dropdown-content li:not(.divider)"
    169
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading