summaryrefslogtreecommitdiffstats
path: root/ajax
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-04 14:51:47 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-04 14:51:47 -0400
commit69480001986cd83852ee6351fbd5d68718eb829c (patch)
tree42ecf232740c84238727665fb198135a4e1fb989 /ajax
parent41115284bf6c1023a542be0d6f2fab77febad36b (diff)
everything is there but the fancyness
Diffstat (limited to 'ajax')
-rw-r--r--ajax/createfolder.php8
-rw-r--r--ajax/newfeed.php4
2 files changed, 6 insertions, 6 deletions
diff --git a/ajax/createfolder.php b/ajax/createfolder.php
index a53b60d92..cbb3d89aa 100644
--- a/ajax/createfolder.php
+++ b/ajax/createfolder.php
@@ -27,8 +27,8 @@ $l = OC_L10N::get('news');
if(!$folderid) {
OCP\JSON::error(array('data' => array('message' => $l->t('Error adding folder.'))));
OCP\Util::writeLog('news','ajax/createfolder.php: Error adding folder: '.$_POST['name'], OCP\Util::ERROR);
- exit();
}
-
-//TODO: replace the following with the success case. see contact/ajax/createaddressbook.php for inspirations
-OCP\JSON::error(array('data' => array('message' => $l->t('Error adding folder.'))));
+else {
+ //TODO: replace the following with a real success case. see contact/ajax/createaddressbook.php for inspirations
+ OCP\JSON::success(array('data' => array('message' => $l->t('Folder added!'))));
+} \ No newline at end of file
diff --git a/ajax/newfeed.php b/ajax/newfeed.php
index d75af0e8e..2d85bcdc8 100644
--- a/ajax/newfeed.php
+++ b/ajax/newfeed.php
@@ -31,6 +31,6 @@ if(!$feedid) {
exit();
}
-//TODO: replace the following with the success case. see contact/ajax/createaddressbook.php for inspirations
-OCP\JSON::error(array('data' => array('message' => $l->t('Error adding feed.'))));
+//TODO: replace the following with a real success case. see contact/ajax/createaddressbook.php for inspirations
+OCP\JSON::success(array('data' => array('message' => $l->t('Feed added!'))));