~ubuntuone-pqm-team/online-services-common-js/stable

« back to all changes in this revision

Viewing changes to src/navbar/js/navbar.js

  • Committer: jonas-drange
  • Date: 2014-04-23 09:48:21 UTC
  • mfrom: (30.1.12 navbar-autocomplete)
  • Revision ID: jonas.drange@canonical.com-20140423094821-kgahgu2z4p9xnws1
[r=stephen-stewart] navbar-autocomplete:
Plugs Y.AutoComplete into an input element.
Manipulates the collapse element so that the autocomplete list is shown.

plugin-collapse:
Publish open, close and toggle events and fire them when appropriate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
            throw new Error('missing header dom');
45
45
        }
46
46
 
47
 
        var menu = node.one('.ues-navbar-collapse');
 
47
        var menu = node.one('.ues-navbar-collapse:not(.search)');
48
48
        var search = node.one('.ues-navbar-collapse.search');
49
49
 
50
50
        if(menu) {