hharnisc / meteor-accounts-admin-ui-bootstrap-3

A roles based account management system using bootstrap 3 for Meteor
MIT License
56 stars 55 forks source link

Can't toggle dropdown from js #25

Open Tolsi opened 9 years ago

Tolsi commented 9 years ago

I did not open it with this code:

Template.home.events
  "click .login": (e) ->
    e.preventDefault()
    console.log($("a.dropdown-toggle").length)
    #$("#login-dropdown-list").toggleClass("open",true);
    $("a.dropdown-toggle").dropdown("toggle")

My packeges list:

accounts-password                  1.0.4  Password support for accounts
alanning:roles                     1.2.13  Role-based authorization
aslagle:reactive-table             0.5.2  A reactive table designed for Meteor
bengott:avatar                     0.5.1  Consolidated user avatar template (twitter, facebook, gravatar, etc.)
coffeescript                       1.0.4  Javascript dialect with fewer braces and semicolons
email                              1.0.4  Send email messages
iron:router                        1.0.0  Routing specifically designed for Meteor
jquery                             1.0.1  Manipulate the DOM using CSS selectors
meteor-platform                    1.2.0  Include a standard set of Meteor packages in your app
mizzao:bootstrap-3                 3.3.0  HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.
mrt:accounts-admin-ui-bootstrap-3  0.2.7  A roles based account management system using bootstrap 3
mrt:accounts-ui-bootstrap-3        0.3.3  Bootstrap styled version of login widgets
quietcreep:formation               1.0.2  Slender form creation w/ client & server side validation
sacha:spin                         2.0.4  Simple spinner package for Meteor
tmeasday:errors                    2.0.0  A pattern to display application errors to the user
underscore                         1.0.1  Collection of small helpers: _.map, _.each, ...

I get '1' in the log, manually it works. I do not understand something?