From bb04e46bede0a8fdc46abaa71423f2cebf8d15e9 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Mon, 13 Aug 2012 18:18:18 +0000 Subject: [PATCH] Remove not really working is_public / sharing things --- index.php | 2 -- js/addBm.js | 1 - js/bookmarks.js | 2 +- lib/bookmarks.php | 9 --------- templates/addBm.php | 2 -- templates/list.php | 17 ----------------- 6 files changed, 1 insertion(+), 32 deletions(-) diff --git a/index.php b/index.php index 8168be1a..d1f626c4 100644 --- a/index.php +++ b/index.php @@ -37,7 +37,6 @@ OCP\Util::addscript('bookmarks','addBm'); OCP\Util::addscript('bookmarks','tag-it'); OCP\Util::addStyle('bookmarks', 'jquery.tagit'); $qtags = OC_Bookmarks_Bookmarks::findTags(); -$shared = OC_Bookmarks_Bookmarks::findSharing(); $tags = array(); foreach($qtags as $tag) { @@ -57,5 +56,4 @@ $tmpl->assign('bookmark', $bm); $tmpl->assign('req_tag',isset($_GET['tag']) ? $_GET['tag'] : ''); $tmpl->assign('tags', json_encode($tags), false); -$tmpl->assign('shared', $shared); $tmpl->printPage(); diff --git a/js/addBm.js b/js/addBm.js index c2b6d406..4a9c1cfe 100644 --- a/js/addBm.js +++ b/js/addBm.js @@ -44,7 +44,6 @@ base.$el.find('.title').val(record.title); base.$el.find('.url_input').val(record.url); base.$el.find('.desc').val(record.description); - base.$el.find('.is_public').val(record.public); tagit_elem = base.$el.find('.tags'); for(var i=0;iexecute()->fetchAll(); - return $tags; - } /** * @brief Finds all tags for bookmarks */ diff --git a/templates/addBm.php b/templates/addBm.php index 83912d12..065efb18 100644 --- a/templates/addBm.php +++ b/templates/addBm.php @@ -35,8 +35,6 @@
  • " /> - id="is_public" name="is_public"> -
  • diff --git a/templates/list.php b/templates/list.php index 43e0acaa..79fc3859 100644 --- a/templates/list.php +++ b/templates/list.php @@ -31,23 +31,6 @@ - - -