mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing weird Safari OPML upload bug.
This commit is contained in:
parent
fccf1fda63
commit
3331ffad6a
1 changed files with 3 additions and 28 deletions
|
@ -166,20 +166,12 @@ NEWSBLUR.ReaderAddFeed.prototype = {
|
|||
url: '/opml/opml_upload',
|
||||
secureuri: false,
|
||||
fileElementId: 'opml_file_input',
|
||||
dataType: 'json',
|
||||
dataType: 'text',
|
||||
success: function (data, status)
|
||||
{
|
||||
$loading.removeClass('NB-active');
|
||||
|
||||
if (typeof data.code != 'undefined') {
|
||||
if (data.code <= 0) {
|
||||
// NEWSBLUR.log(['Success - Error', data.code]);
|
||||
} else {
|
||||
// NEWSBLUR.log(['Success', data]);
|
||||
NEWSBLUR.reader.load_feeds();
|
||||
$.modal.close();
|
||||
}
|
||||
}
|
||||
NEWSBLUR.reader.load_feeds();
|
||||
$.modal.close();
|
||||
},
|
||||
error: function (data, status, e)
|
||||
{
|
||||
|
@ -190,24 +182,7 @@ NEWSBLUR.ReaderAddFeed.prototype = {
|
|||
|
||||
return false;
|
||||
},
|
||||
|
||||
handle_opml_form: function() {
|
||||
var self = this;
|
||||
var $form = $('form.opml_import_form');
|
||||
|
||||
// NEWSBLUR.log(['OPML Form:', $form]);
|
||||
|
||||
var callback = function(e) {
|
||||
// NEWSBLUR.log(['OPML Callback', e]);
|
||||
};
|
||||
|
||||
$form.submit(function() {
|
||||
|
||||
self.model.process_opml_import($form.serialize(), callback);
|
||||
return false;
|
||||
});
|
||||
},
|
||||
|
||||
// ===========
|
||||
// = Actions =
|
||||
// ===========
|
||||
|
|
Loading…
Add table
Reference in a new issue