get rid of the unused ispublic variable

This commit is contained in:
Mario Vavti 2016-04-29 21:38:36 +02:00
parent 83a0e82d5c
commit 931a4fafe3
9 changed files with 4 additions and 27 deletions

View File

@ -38,7 +38,7 @@ class Cal extends \Zotlabs\Web\Controller {
head_set_icon(\App::$data['channel']['xchan_photo_s']);
\App::$page['htmlhead'] .= "<script> var ispublic = '" . t('everybody') . "'; var profile_uid = " . ((\App::$data['channel']) ? \App::$data['channel']['channel_id'] : 0) . "; </script>" ;
\App::$page['htmlhead'] .= "<script> var profile_uid = " . ((\App::$data['channel']) ? \App::$data['channel']['channel_id'] : 0) . "; </script>" ;
}

View File

@ -83,7 +83,6 @@ class Editpost extends \Zotlabs\Web\Controller {
}
$x = array(
'ispublic' => '&nbsp;',
'nickname' => $channel['channel_address'],
'editor_autocomplete'=> true,
'bbco_autocomplete'=> 'bbcode',

View File

@ -42,7 +42,7 @@ class Photos extends \Zotlabs\Web\Controller {
head_set_icon(\App::$data['channel']['xchan_photo_s']);
\App::$page['htmlhead'] .= "<script> var ispublic = '" . t('everybody') . "'; var profile_uid = " . ((\App::$data['channel']) ? \App::$data['channel']['channel_id'] : 0) . "; </script>" ;
\App::$page['htmlhead'] .= "<script> var profile_uid = " . ((\App::$data['channel']) ? \App::$data['channel']['channel_id'] : 0) . "; </script>" ;
}

View File

@ -1175,7 +1175,6 @@ function status_editor($a, $x, $popup = false) {
'$pretext' => ((x($x,'pretext')) ? $x['pretext'] : ''),
'$geotag' => $geotag,
'$nickname' => $x['nickname'],
'$ispublic' => ((x($x,'ispublic')) ? $x['ispublic'] : t('Visible to <strong>everybody</strong>')),
'$linkurl' => t('Please enter a link URL:'),
'$term' => t('Tag term:'),
'$whereareu' => t('Where are you right now?'),

View File

@ -196,16 +196,13 @@ ACL.prototype.update_view = function() {
$('#jot-perms-icon').removeClass('icon-lock').addClass('icon-unlock');
$('#jot-public').show();
$('.profile-jot-net input').attr('disabled', false);
if(typeof editor !== 'undefined' && editor !== false) {
$('#profile-jot-desc').html(ispublic);
}
} else {
that.showall.removeClass("btn-warning").addClass("btn-default");
/* jot acl */
$('#jot-perms-icon').removeClass('icon-unlock').addClass('icon-lock');
$('#jot-public').hide();
$('.profile-jot-net input').attr('disabled', 'disabled');
$('#profile-jot-desc').html('&nbsp;');
}
$("#acl-list-content .acl-list-item").each(function() {
$(this).removeClass("groupshow grouphide");

View File

@ -1,10 +1,6 @@
/**
* JavaScript used by mod/photos
*/
// is this variable used anywhere?
var ispublic = aStr.everybody;
$(document).ready(function() {
$("#photo-edit-newtag").contact_autocomplete(baseurl + '/acl', 'p', false, function(data) {

View File

@ -2,9 +2,6 @@
* JavaScript used by mod/settings
*/
// is this used anywhere?
var ispublic = aStr.everybody;
$(document).ready(function() {
$('form').areYouSure({'addRemoveFieldsMarksDirty':true, 'message': aStr['leavethispage'] }); // Warn user about unsaved settings

View File

@ -1,7 +1,6 @@
<script language="javascript" type="text/javascript">
var editor = false;
var textlen = 0;
var plaintext = '{{$editselect}}';
var pretext = '{{$pretext}}';
@ -75,14 +74,6 @@ function initEditor(cb){
else {
if(cPopup !== null) { cPopup.close(); cPopup = null; }
}
textlen = txt.length;
if(textlen != 0 && $('#jot-perms-icon').is('.unlock')) {
$('#profile-jot-desc').html(ispublic);
}
else {
$('#profile-jot-desc').html('&nbsp;');
}
});
ed.onInit.add(function(ed) {
@ -109,8 +100,6 @@ function enableOnUser(){
</script>
<script type="text/javascript" src="{{$baseurl}}/view/js/ajaxupload.js" ></script>
<script>
var ispublic = '{{$ispublic}}';
$(document).ready(function() {
/* enable tinymce on focus and click */
$("#profile-jot-text").focus(enableOnUser);

View File

@ -128,7 +128,7 @@
{{if $weblink}}
<li><a href="#" onclick="jotGetLink(); return false;"><i class="icon-link"></i>&nbsp;{{$weblink}}</a></li>
{{/if}}
i {{if $setloc}}
{{if $setloc}}
<li><a href="#" onclick="jotGetLocation(); return false;"><i class="icon-globe"></i>&nbsp;{{$setloc}}</a></li>
{{/if}}
{{if $clearloc}}