diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/js/acl.js | 5 | ||||
-rw-r--r-- | view/js/mod_photos.js | 4 | ||||
-rw-r--r-- | view/js/mod_settings.js | 3 | ||||
-rwxr-xr-x | view/tpl/jot-header.tpl | 11 | ||||
-rwxr-xr-x | view/tpl/jot.tpl | 2 |
5 files changed, 2 insertions, 23 deletions
diff --git a/view/js/acl.js b/view/js/acl.js index 65f1009ed..7940a9bdc 100644 --- a/view/js/acl.js +++ b/view/js/acl.js @@ -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(' '); + } $("#acl-list-content .acl-list-item").each(function() { $(this).removeClass("groupshow grouphide"); diff --git a/view/js/mod_photos.js b/view/js/mod_photos.js index 34e2e3f25..8af75b4eb 100644 --- a/view/js/mod_photos.js +++ b/view/js/mod_photos.js @@ -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) { diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js index 3fd57995a..9a7550ac1 100644 --- a/view/js/mod_settings.js +++ b/view/js/mod_settings.js @@ -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 diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 085710f55..bdcca71ac 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -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(' '); - } }); 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); diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 34952596a..106181ab5 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -128,7 +128,7 @@ {{if $weblink}} <li><a href="#" onclick="jotGetLink(); return false;"><i class="icon-link"></i> {{$weblink}}</a></li> {{/if}} -i {{if $setloc}} + {{if $setloc}} <li><a href="#" onclick="jotGetLocation(); return false;"><i class="icon-globe"></i> {{$setloc}}</a></li> {{/if}} {{if $clearloc}} |