summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-25 21:20:06 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-25 21:20:06 +0200
commit1a913ac282477c0cb13860ccb813260863ebb2ae (patch)
treea81213c509da9422bcf11a5a53fd680a1414cdc4 /apps/bookmarks
parent323b19a4a090b10ea55f0152180da5e6c7290776 (diff)
downloadnextcloud-server-1a913ac282477c0cb13860ccb813260863ebb2ae.tar.gz
nextcloud-server-1a913ac282477c0cb13860ccb813260863ebb2ae.zip
bookmarks app seems to work now :)
Diffstat (limited to 'apps/bookmarks')
-rw-r--r--apps/bookmarks/ajax/addBookmark.php2
-rw-r--r--apps/bookmarks/js/bookmarks.js10
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/bookmarks/ajax/addBookmark.php b/apps/bookmarks/ajax/addBookmark.php
index 4daed58af3b..ceeb034ec9d 100644
--- a/apps/bookmarks/ajax/addBookmark.php
+++ b/apps/bookmarks/ajax/addBookmark.php
@@ -30,6 +30,6 @@ $RUNTIME_NOSETUPFS=true;
OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('bookmarks');
-require_once('../bookmarksHelper.php');
+require_once(OC::$APPSROOT . '/apps/bookmarks/bookmarksHelper.php');
$id = addBookmark($_GET['url'], $_GET['title'], $_GET['tags']);
OC_JSON::success(array('data' => $id)); \ No newline at end of file
diff --git a/apps/bookmarks/js/bookmarks.js b/apps/bookmarks/js/bookmarks.js
index 16ed14c89b2..38b8c43eb7d 100644
--- a/apps/bookmarks/js/bookmarks.js
+++ b/apps/bookmarks/js/bookmarks.js
@@ -20,7 +20,7 @@ function getBookmarks() {
}
$.ajax({
- url: 'ajax/updateList.php',
+ url: OC.filePath('bookmarks', 'ajax', 'updateList.php'),
data: 'tag=' + encodeURIComponent($('#bookmarkFilterTag').val()) + '&page=' + bookmarks_page + '&sort=' + bookmarks_sorting,
success: function(bookmarks){
if (bookmarks.data.length) {
@@ -63,7 +63,7 @@ function addOrEditBookmark(event) {
if (id == 0) {
$.ajax({
- url: 'ajax/addBookmark.php',
+ url: OC.filePath('bookmarks', 'ajax', 'addBookmark.php'),
data: 'url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title) + '&tags=' + encodeURIComponent(tags),
success: function(response){
$('.bookmarks_input').val('');
@@ -75,7 +75,7 @@ function addOrEditBookmark(event) {
}
else {
$.ajax({
- url: 'ajax/editBookmark.php',
+ url: OC.filePath('bookmarks', 'ajax', 'editBookmark.php'),
data: 'id=' + id + '&url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title) + '&tags=' + encodeURIComponent(tags),
success: function(){
$('.bookmarks_input').val('');
@@ -92,7 +92,7 @@ function addOrEditBookmark(event) {
function delBookmark(event) {
var record = $(this).parent().parent();
$.ajax({
- url: 'ajax/delBookmark.php',
+ url: OC.filePath('bookmarks', 'ajax', 'delBookmark.php'),
data: 'url=' + encodeURIComponent($(this).parent().parent().children('.bookmark_url:first').text()),
success: function(data){
record.remove();
@@ -164,7 +164,7 @@ function updateOnBottom() {
function recordClick(event) {
$.ajax({
- url: 'ajax/recordClick.php',
+ url: OC.filePath('bookmarks', 'ajax', 'recordClick.php'),
data: 'url=' + encodeURIComponent($(this).attr('href')),
});
}