diff options
-rw-r--r-- | view/css/conversation.css | 4 | ||||
-rw-r--r-- | view/js/acl.js | 16 | ||||
-rw-r--r-- | view/js/mod_chat.js | 4 | ||||
-rw-r--r-- | view/js/mod_filestorage.js | 4 | ||||
-rw-r--r-- | view/js/mod_mitem.js | 4 | ||||
-rw-r--r-- | view/js/mod_photos.js | 4 | ||||
-rw-r--r-- | view/js/mod_settings.js | 4 | ||||
-rw-r--r-- | view/theme/redbasic/css/style.css | 1 | ||||
-rwxr-xr-x | view/tpl/jot.tpl | 8 | ||||
-rwxr-xr-x | view/tpl/photo_view.tpl | 2 | ||||
-rwxr-xr-x | view/tpl/photos_upload.tpl | 5 |
11 files changed, 19 insertions, 37 deletions
diff --git a/view/css/conversation.css b/view/css/conversation.css index ee26bbf47..6fbc86df6 100644 --- a/view/css/conversation.css +++ b/view/css/conversation.css @@ -30,10 +30,6 @@ margin-top: 10px; } -#jot-perms-icon { - margin: 1px; -} - #profile-jot-perms-end { height: 30px; } diff --git a/view/js/acl.js b/view/js/acl.js index 6c3d9b462..308e65131 100644 --- a/view/js/acl.js +++ b/view/js/acl.js @@ -162,23 +162,11 @@ ACL.prototype.set_deny = function(itemid){ } ACL.prototype.update_view = function(){ - var jotpermslock; - var jotpermsunlock; - if (document.jotpermslock == null) { - jotpermslock = 'lock'; - } else { - jotpermslock = document.jotpermslock; - } - if (document.jotpermsunlock == null) { - jotpermsunlock = 'unlock'; - } else { - jotpermsunlock = document.jotpermsunlock; - } if (that.allow_gid.length==0 && that.allow_cid.length==0 && that.deny_gid.length==0 && that.deny_cid.length==0){ that.showall.addClass("selected"); /* jot acl */ - $('#jot-perms-icon').removeClass(jotpermslock).addClass(jotpermsunlock); + $('#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) { @@ -188,7 +176,7 @@ ACL.prototype.update_view = function(){ } else { that.showall.removeClass("selected"); /* jot acl */ - $('#jot-perms-icon').removeClass(jotpermsunlock).addClass(jotpermslock); + $('#jot-perms-icon').removeClass('icon-unlock').addClass('icon-lock'); $('#jot-public').hide(); $('.profile-jot-net input').attr('disabled', 'disabled'); $('#profile-jot-desc').html(' '); diff --git a/view/js/mod_chat.js b/view/js/mod_chat.js index 82957ae44..88c1cf7d8 100644 --- a/view/js/mod_chat.js +++ b/view/js/mod_chat.js @@ -4,11 +4,11 @@ $(document).ready(function() { var selstr; $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() { selstr = $(this).text(); - $('#jot-perms-icon').removeClass('unlock').addClass('lock'); + $('#jot-perms-icon').removeClass('icon-unlock').addClass('icon-lock'); $('#jot-public').hide(); }); if(selstr == null) { - $('#jot-perms-icon').removeClass('lock').addClass('unlock'); + $('#jot-perms-icon').removeClass('icon-lock').addClass('icon-unlock'); $('#jot-public').show(); } diff --git a/view/js/mod_filestorage.js b/view/js/mod_filestorage.js index 82957ae44..88c1cf7d8 100644 --- a/view/js/mod_filestorage.js +++ b/view/js/mod_filestorage.js @@ -4,11 +4,11 @@ $(document).ready(function() { var selstr; $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() { selstr = $(this).text(); - $('#jot-perms-icon').removeClass('unlock').addClass('lock'); + $('#jot-perms-icon').removeClass('icon-unlock').addClass('icon-lock'); $('#jot-public').hide(); }); if(selstr == null) { - $('#jot-perms-icon').removeClass('lock').addClass('unlock'); + $('#jot-perms-icon').removeClass('icon-lock').addClass('icon-unlock'); $('#jot-public').show(); } diff --git a/view/js/mod_mitem.js b/view/js/mod_mitem.js index d33713ee3..979a15297 100644 --- a/view/js/mod_mitem.js +++ b/view/js/mod_mitem.js @@ -10,11 +10,11 @@ $(document).ready(function() { var selstr; $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() { selstr = $(this).text(); - $('#jot-perms-icon').removeClass('unlock').addClass('lock'); + $('#jot-perms-icon').removeClass('icon-unlock').addClass('icon-lock'); $('#jot-public').hide(); }); if(selstr == null) { - $('#jot-perms-icon').removeClass('lock').addClass('unlock'); + $('#jot-perms-icon').removeClass('icon-lock').addClass('icon-unlock'); $('#jot-public').show(); } diff --git a/view/js/mod_photos.js b/view/js/mod_photos.js index d9497af1e..aaa86df40 100644 --- a/view/js/mod_photos.js +++ b/view/js/mod_photos.js @@ -17,11 +17,11 @@ $(document).ready(function() { var selstr; $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() { selstr = $(this).text(); - $('#jot-perms-icon').removeClass('unlock').addClass('lock'); + $('#jot-perms-icon').removeClass('icon-unlock').addClass('icon-lock'); $('#jot-public').hide(); }); if(selstr == null) { - $('#jot-perms-icon').removeClass('lock').addClass('unlock'); + $('#jot-perms-icon').removeClass('icon-lock').addClass('icon-unlock'); $('#jot-public').show(); } diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js index 8cd062f43..fa788280d 100644 --- a/view/js/mod_settings.js +++ b/view/js/mod_settings.js @@ -12,11 +12,11 @@ $(document).ready(function() { var selstr; $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() { selstr = $(this).text(); - $('#jot-perms-icon').removeClass('unlock').addClass('lock'); + $('#jot-perms-icon').removeClass('icon-unlock').addClass('icon-lock'); $('#jot-public').hide(); }); if(selstr == null) { - $('#jot-perms-icon').removeClass('lock').addClass('unlock'); + $('#jot-perms-icon').removeClass('icon-lock').addClass('icon-unlock'); $('#jot-public').show(); } diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index d078d4473..6ee71a1bd 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1896,6 +1896,7 @@ img.mail-list-sender-photo { color: #777; } +#jot-perms-icon, .jot-icons { color: $toolicon_colour; } diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index ab8a3f77b..b20644f49 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -70,14 +70,12 @@ </button> {{/if}} </div> - <div id="profile-rotator-wrapper" style="display: {{$visitor}};" > + <div id="profile-rotator-wrapper"> <div id="profile-rotator"></div> </div> <div id="profile-jot-submit-right" class="btn-group pull-right"> {{if $showacl}} - <div class="btn btn-default btn-sm" id="profile-jot-perms" style="display: {{$pvisit}};" title="{{$permset}}" > - <a href="#profile-jot-acl-wrapper" id="jot-perms-icon" class="icon {{$lockstate}}"></a>{{$bang}} - </div> + <a href="#profile-jot-acl-wrapper" class="btn btn-default btn-sm jot-icons icon-{{$lockstate}}" id="jot-perms-icon" title="{{$permset}}" style="display: {{$pvisit}};"></a>{{$bang}} {{/if}} {{if $preview}} <button class="btn btn-default btn-sm" onclick="preview_post();return false;" title="{{$preview}}"> @@ -105,7 +103,7 @@ </div> <!-- Modal for item expiry--> -<div class="modal fade" id="expiryModal" tabindex="-1" role="dialog" aria-labelledby="expiryModalLabel" aria-hidden="true"> +<div class="modal" id="expiryModal" tabindex="-1" role="dialog" aria-labelledby="expiryModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> diff --git a/view/tpl/photo_view.tpl b/view/tpl/photo_view.tpl index f5e5bb7b5..067073b23 100755 --- a/view/tpl/photo_view.tpl +++ b/view/tpl/photo_view.tpl @@ -53,7 +53,7 @@ <div id="photo-edit-rotate-end"></div> <div id="settings-default-perms" class="settings-default-perms" > - <span id="jot-perms-icon" class="icon {{$edit.lockstate}}" ></span> + <span id="jot-perms-icon" class="{{$edit.lockstate}}" ></span> <a href="#profile-jot-acl-wrapper" id="settings-default-perms-menu" >{{$edit.permissions}}</a> <div id="settings-default-perms-menu-end"></div> <div id="settings-default-perms-select" style="display: none; margin-bottom: 20px" > diff --git a/view/tpl/photos_upload.tpl b/view/tpl/photos_upload.tpl index 3f1906086..1ab80d346 100755 --- a/view/tpl/photos_upload.tpl +++ b/view/tpl/photos_upload.tpl @@ -24,9 +24,8 @@ <div id="photos-upload-perms" class="photos-upload-perms" > - <a href="#photos-upload-permissions-wrapper" id="photos-upload-perms-menu" class="button" /> - <span id="jot-perms-icon" class="icon {{$lockstate}}" ></span>{{$permissions}} - </a> + <span id="jot-perms-icon" class="icon-{{$lockstate}}" ></span> + <a href="#photos-upload-permissions-wrapper" id="photos-upload-perms-menu" class="button" />{{$permissions}}</a> </div> <div id="photos-upload-perms-end"></div> |