1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2024-11-29 04:24:11 +01:00

Remove not really working is_public / sharing things

This commit is contained in:
Brice Maron 2012-08-13 18:18:18 +00:00
parent b5c0cd7853
commit bb04e46bed
6 changed files with 1 additions and 32 deletions

View File

@ -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();

View File

@ -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;i<record.tags.length;i++) {
tagit_elem.tagit('createTag', record.tags[i]);

View File

@ -175,7 +175,7 @@ function createEditDialog(record){
dialog_html = $('#edit_dialog').html();
var dialog = $(dialog_html).dialog({
width : 620,
height: 400,
height: 350,
title: t('bookmark', 'Edit bookmark'),
modal: true,
close : function(event, ui) {

View File

@ -25,15 +25,6 @@
*/
class OC_Bookmarks_Bookmarks{
/**
* @brief Find People with whome we shared bookmarks and how much
*/
public static function findSharing($offset = 0, $limit = 10){
$query = OCP\DB::prepare('SELECT \'@public\' as name, count(*) as nbr from *PREFIX*bookmarks where public=1 group by public LIMIT '.$offset.', '.$limit);
$tags = $query->execute()->fetchAll();
return $tags;
}
/**
* @brief Finds all tags for bookmarks
*/

View File

@ -35,8 +35,6 @@
<li>
<input type="submit" class="submit" value="<?php echo $l->t("Save");?>" />
<input type="checkbox" <?php if($_['bookmark']['is_public']){echo 'checked="checked"';} ?> id="is_public" name="is_public">
<label for="is_public" class="is_public_label"><?php echo $l->t("Make this link public");?></label>
<input type="hidden" class="record_id" value="" name="record_id" />
<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>">
</li>

View File

@ -31,23 +31,6 @@
<label><?php echo $l->t('Related Tags'); ?></label>
<ul class="tag_list">
</ul>
<label><?php echo $l->t('Shared with'); ?></label>
<ul class="share_list">
<?php foreach($_['shared'] as $users):?>
<li><span class="tag"><?php echo $users['name'];?></span>
<p class="tags_actions">
<span class="bookmark_edit">
<img class="svg" src="<?php echo OCP\image_path('core','actions/rename.svg') ?>" title="Edit">
</span>
<span class="bookmark_delete">
<img class="svg" src="<?php echo OCP\image_path('core','actions/delete.svg') ?>" title="Delete">
</span>
</p>
<em><?php echo $users['nbr'];?></em>
</li>
<?php endforeach;?>
<ul>
</div>