]> git.mxchange.org Git - friendica.git/commitdiff
photos view: fix js error with undefined variable
authorrabuzarus <>
Thu, 12 May 2016 23:26:07 +0000 (01:26 +0200)
committerrabuzarus <>
Thu, 12 May 2016 23:26:07 +0000 (01:26 +0200)
mod/photos.php
view/templates/photo_view.tpl
view/theme/frost-mobile/templates/photo_view.tpl
view/theme/frost/templates/photo_view.tpl
view/theme/quattro/templates/photo_view.tpl
view/theme/vier/templates/photo_view.tpl

index 4761b627d8c51bb228ee071e887b5879ad72f807..7d4e2de59c2689b3dd869ca8bc3cf4bfe1c83880 100644 (file)
@@ -1079,6 +1079,10 @@ function photos_content(&$a) {
 
        $o = "";
 
+       // js variables for liveUpdate function in main.js
+       $o .= "<script> var profile_uid = " . $a->profile_uid 
+                       . "; var netargs = '?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
+
        // tabs
        $is_owner = (local_user() && (local_user() == $owner_uid));
        $o .= profile_tabs($a,$is_owner, $a->data['user']['nickname']);
index 847b623ebe9c821aaf05be5e5973c749b39873f5..b85a1c2f538bb5441f7f07699f1e4dd02d4b43bc 100644 (file)
@@ -1,5 +1,5 @@
 
-<div id="live-display"></div>
+<div id="live-photos"></div>
 <h3><a href="{{$album.0}}">{{$album.1}}</a></h3>
 
 <div id="photo-edit-link-wrap">
index 8d92b7ba79af3c6025a2321d313dbb159be9b5a6..a5fb2f04157077caf90e3b80ce602d672bcb5a8c 100644 (file)
@@ -1,5 +1,5 @@
 
-<div id="live-display"></div>
+<div id="live-photos"></div>
 <h3><a href="{{$album.0}}">{{$album.1}}</a></h3>
 
 <div id="photo-edit-link-wrap">
index 8d92b7ba79af3c6025a2321d313dbb159be9b5a6..a5fb2f04157077caf90e3b80ce602d672bcb5a8c 100644 (file)
@@ -1,5 +1,5 @@
 
-<div id="live-display"></div>
+<div id="live-photos"></div>
 <h3><a href="{{$album.0}}">{{$album.1}}</a></h3>
 
 <div id="photo-edit-link-wrap">
index 463969e78ec15e6c4b463583383a901a2694d24e..f4a780a0ac3af5fca0299328380cf757314cd6e5 100644 (file)
@@ -1,4 +1,4 @@
-<div id="live-display"></div>
+<div id="live-photos"></div>
 <h3 id="photo-album-title"><a href="{{$album.0}}">{{$album.1}}</a></h3>
 
 <div id="photo-edit-link-wrap">
index fcf0cc36d14db70a2c1111004303439095e0b49f..c252960c08389d38aad9282d796d39f99503c9d9 100644 (file)
@@ -1,5 +1,5 @@
 
-<div id="live-display"></div>
+<div id="live-photos"></div>
 <h3><a href="{{$album.0}}">{{$album.1}}</a></h3>
 
 <div id="photo-edit-link-wrap">