mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-12-01 05:24:11 +01:00
Bookmark: Disable Export if no bookmark is present ref owncloud/apps#559
This commit is contained in:
parent
5b086de12d
commit
4604f72109
@ -45,17 +45,9 @@ foreach($qtags as $tag) {
|
||||
$tags[] = $tag['tag'];
|
||||
}
|
||||
|
||||
$bm = array('title'=> '',
|
||||
'url'=> '',
|
||||
'tags'=> array(),
|
||||
'desc'=>'',
|
||||
'is_public'=>0,
|
||||
);
|
||||
|
||||
$tmpl = new OCP\Template( 'bookmarks', 'list', 'user' );
|
||||
|
||||
$tmpl->assign('bookmark', $bm);
|
||||
|
||||
$tmpl->assign('req_tag', isset($_GET['tag']) ? $_GET['tag'] : '');
|
||||
$tmpl->assign('tags', json_encode($tags), false);
|
||||
$tmpl->printPage();
|
||||
|
@ -210,9 +210,11 @@ function delBookmark(event) {
|
||||
function checkEmpty() {
|
||||
if($('.bookmarks_list').children().length == 0) {
|
||||
$("#firstrun").show();
|
||||
$("#bm_export").addClass('disabled');
|
||||
$('.bookmarks_list').hide();
|
||||
} else {
|
||||
$("#firstrun").hide();
|
||||
$("#bm_export").removeClass('disabled');
|
||||
$('.bookmarks_list').show();
|
||||
}
|
||||
}
|
||||
|
@ -63,8 +63,4 @@ function bookmarklet(){
|
||||
</div>
|
||||
<script type="text/javascript" src="<?php echo OC_Helper::linkTo('bookmarks/js', 'full_tags.php');?>"></script>
|
||||
|
||||
|
||||
<script type="text/html" id="edit_dialog_tmpl">
|
||||
<?php require 'addBm.php';?>
|
||||
</script>
|
||||
<?php require 'js_tpl.php';?>
|
Loading…
Reference in New Issue
Block a user