Skip to content

Commit

Permalink
Auto merge of new-xkit#210 - bvtsang:bug/user-menu-ask, r=blackjackkent
Browse files Browse the repository at this point in the history
Fix sending asks when classic menu is enabled

Plus some refactoring.

Fixes new-xkit#42.

The `Tumblr.DashboardAsk.open_ask` function I'm trying to call looks like:

```javascript
function(g) {
    Tumblr.Popover.hide_all();
    var h = g.attr("data-tumblelog-name");
    var i = (parseInt(g.data("anonymous-ask"), 10) === 1) ? true : false;
    this.model = new f();
    if (this.view) {
        this.view.destroy()
    }
    this.view = new b({
        model: this.model,
        recipient: h,
        allow_anonymous: i
    }).show_form()
}
```
  • Loading branch information
homu committed Aug 12, 2015
2 parents c86de00 + 03aff83 commit f362b5c
Showing 1 changed file with 113 additions and 113 deletions.
Loading

0 comments on commit f362b5c

Please sign in to comment.