summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-07 19:03:35 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-07 19:03:35 -0400
commit5754af967cb92c49ae90c544725eb5a9ed33fc59 (patch)
treec2f11c11d669e970eb0e14a224e07908c40b9f80 /js
parente4b145726f00dc57b04998a28153fb0ff887ad13 (diff)
starts implementing updateitem
Diffstat (limited to 'js')
-rw-r--r--js/news.js18
1 files changed, 17 insertions, 1 deletions
diff --git a/js/news.js b/js/news.js
index b940a3f69..25a6d6f34 100644
--- a/js/news.js
+++ b/js/news.js
@@ -97,6 +97,16 @@ News={
}
});
return false;
+ },
+ markItem:function(itemid) {
+ $.post(OC.filePath('news', 'ajax', 'markitem.php'),{'itemid':itemid},function(jsondata){
+ if(jsondata.status == 'success'){
+
+ }
+ else{
+ OC.dialogs.alert(jsondata.data.message, t('news', 'Error'));
+ }
+ });
}
}
}
@@ -110,10 +120,16 @@ $(document).ready(function(){
$(this).toggle();
});
- $('.accordion .title').click(function() {
+ $('.accordion .title_unread').click(function() {
$(this).next().toggle();
return false;
}).next().hide();
+
+ $('.accordion .title_read').click(function() {
+ $(this).next().toggle();
+ return false;
+ }).next().hide();
+
$('.feeds_list').hover(function() {
$(this).find('#feeds_delete').toggle();