mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing up OPML exporter for anonymous users (just use the default account), and fixing the add dialog's focus on the add url, just in case it's slow to load.
This commit is contained in:
parent
48f2ed5860
commit
3ee5d43c56
2 changed files with 6 additions and 4 deletions
|
@ -14,7 +14,7 @@ from apps.reader.forms import SignupForm
|
|||
from apps.reader.models import UserSubscription
|
||||
from apps.feed_import.models import OAuthToken, OPMLImporter, OPMLExporter, GoogleReaderImporter
|
||||
from utils import json_functions as json
|
||||
from utils.user_functions import ajax_login_required
|
||||
from utils.user_functions import ajax_login_required, get_user
|
||||
|
||||
|
||||
@ajax_login_required
|
||||
|
@ -44,9 +44,9 @@ def opml_upload(request):
|
|||
data = json.encode(dict(message=message, code=code, payload=payload))
|
||||
return HttpResponse(data, mimetype='text/plain')
|
||||
|
||||
@ajax_login_required
|
||||
def opml_export(request):
|
||||
exporter = OPMLExporter(request.user)
|
||||
user = get_user(request)
|
||||
exporter = OPMLExporter(user)
|
||||
opml = exporter.process()
|
||||
now = datetime.datetime.now()
|
||||
|
||||
|
|
|
@ -144,7 +144,9 @@ NEWSBLUR.ReaderAddFeed.prototype = {
|
|||
'onOpen': function (dialog) {
|
||||
dialog.overlay.fadeIn(200, function () {
|
||||
dialog.container.fadeIn(200);
|
||||
dialog.data.fadeIn(200);
|
||||
dialog.data.fadeIn(200, function() {
|
||||
self.focus_add_feed();
|
||||
});
|
||||
});
|
||||
},
|
||||
'onShow': function(dialog) {
|
||||
|
|
Loading…
Add table
Reference in a new issue