-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending asks from dashboard with User Menus+ fails #42
Comments
My bad. ColtCelestia here, I didn't realize there was a github. More information about the failure, at least the version I'm getting: Edit: It seems that the behavior has changed, now I'm being redirected to the blog's main Ask page (Rather than getting the in-dashboard popup box as per my settings) |
I'm having trouble reproducing this with the following steps, which assumes you have control over accounts A and B:
This currently works for me. |
I get redirected to the blog B's ask page instead of having a popup ask box open. I'll see if I can do something about that tomorrow |
If I turn enable XKit's Classic User Menu, then at step 4 I get redirected to the user's ask page. I guess I need to test more thoroughly. Updated steps to reproduce:
Thanks for looking at it, Wolvan! |
Because the normal menu popup is handle by a Tumblr event. Tumblr.Events.trigger('indashblog:tumblelog:ask', {
recipient: this.model.get('name'),
anonymous_asks: this.model.get('anonymous_asks')
}); But I don't like that we rely on inject script so much. |
@WyohKnott I took your advice and tried https://gist.github.com/bvtsang/b879bee8a960566c0c68, but nothing happens. I guess I'll keep investigating this in the meantime. Edit: I found a hint in |
Fix sending asks when classic menu is enabled Plus some refactoring. Fixes #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() } ```
No description provided.
The text was updated successfully, but these errors were encountered: