summaryrefslogtreecommitdiffstats
path: root/js/public
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-11 19:50:17 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-11 19:50:17 +0200
commitf16b8e1d92d68b158555fd3a06a784fae22cf353 (patch)
tree2fe1526daccc57d1ec3007ee12837bc1aec5e72a /js/public
parentaa208e38b63d1d982feb3f5f3583c3c9d909e4f1 (diff)
load new feed when it was added
Diffstat (limited to 'js/public')
-rw-r--r--js/public/app.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/public/app.js b/js/public/app.js
index 8fe0d0354..2aaaa05c0 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -296,9 +296,10 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
_this._$scope.feedExistsError = false;
try {
_this._isAddingFeed = true;
- return _this._feedBl.create(feedUrl, parentFolderId, function() {
+ return _this._feedBl.create(feedUrl, parentFolderId, function(data) {
_this._$scope.feedUrl = '';
- return _this._isAddingFeed = false;
+ _this._isAddingFeed = false;
+ return _this._feedBl.load(data['feeds'][0].id);
}, function() {
return _this._isAddingFeed = false;
});
@@ -764,7 +765,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
feed.error = response.msg;
return onFailure();
} else {
- return onSuccess();
+ return onSuccess(response.data);
}
};
return this._persistence.createFeed(url, parentId, success);