]> git.mxchange.org Git - friendica.git/blobdiff - view/js/main.js
Remove unused variable in Model\Item
[friendica.git] / view / js / main.js
index b41750b6a56dad16722e51779d32db74ec79857e..95e7b1542edf4b38b7c585dfdfe73f020b0b2b8b 100644 (file)
@@ -24,7 +24,7 @@ function openClose(theID) {
 }
 
 function openMenu(theID) {
-       var el = document.getElementById(theID)
+       var el = document.getElementById(theID);
 
        if (el) {
                el.style.display = "block";
@@ -81,6 +81,11 @@ $(function() {
                        Dialog.doImageBrowser("comment", id);
                        return;
                }
+
+               if (bbcode == "imgprv") {
+                       bbcode = "img";
+               }
+
                insertFormatting(bbcode, id);
        });
 
@@ -305,7 +310,9 @@ $(function() {
        // Asynchronous calls are deferred until the very end of the page load to ease on slower connections
        window.addEventListener("load", function(){
                NavUpdate();
-               acl.get(0, 100);
+               if (typeof acl !== 'undefined') {
+                       acl.get(0, 100);
+               }
        });
 
        // Allow folks to stop the ajax page updates with the pause/break key
@@ -383,7 +390,7 @@ function NavUpdate() {
                                $('nav').trigger('nav-update', data.result);
 
                                // start live update
-                               ['network', 'profile', 'community', 'notes', 'display', 'contacts'].forEach(function (src) {
+                               ['network', 'profile', 'community', 'notes', 'display', 'contact'].forEach(function (src) {
                                        if ($('#live-' + src).length) {
                                                liveUpdate(src);
                                        }
@@ -726,7 +733,7 @@ function loadScrollContent() {
 
        // get the raw content from the next page and insert this content
        // right before "#conversation-end"
-       $.get('network?mode=raw' + infinite_scroll.reload_uri + '&last_received=' + received + '&last_commented=' + commented + '&last_created=' + created + '&last_id=' + id + '&page=' + infinite_scroll.pageno, function(data) {
+       $.get(infinite_scroll.reload_uri + '&mode=raw&last_received=' + received + '&last_commented=' + commented + '&last_created=' + created + '&last_id=' + id + '&page=' + infinite_scroll.pageno, function(data) {
                $("#scroll-loader").hide();
                if ($(data).length > 0) {
                        $(data).insertBefore('#conversation-end');