show acl selector in a popup with fancybox
This commit is contained in:
parent
0a3ae96093
commit
1c9ed08620
31 changed files with 1681 additions and 35 deletions
|
|
@ -15,10 +15,12 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
acl = new ACL(
|
||||
baseurl+"/acl",
|
||||
[$allowcid,$allowgid,$denycid,$denygid]
|
||||
);
|
||||
$(document).ready(function() {
|
||||
if(typeof acl=="undefined"){
|
||||
acl = new ACL(
|
||||
baseurl+"/acl",
|
||||
[$allowcid,$allowgid,$denycid,$denygid]
|
||||
);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
<base href="$baseurl/" />
|
||||
<meta name="generator" content="$generator" />
|
||||
<link rel="stylesheet" type="text/css" href="$stylesheet" media="all" />
|
||||
<link rel="stylesheet" href="$baseurl/library/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
|
||||
<link rel="shortcut icon" href="$baseurl/images/friendika-32.png" />
|
||||
<link rel="search"
|
||||
href="$baseurl/opensearch"
|
||||
|
|
@ -12,6 +13,7 @@
|
|||
<script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<script type="text/javascript" src="$baseurl/include/jquery.js" ></script>
|
||||
<script type="text/javascript" src="$baseurl/library/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
||||
<script type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
|
||||
<script type="text/javascript" src="$baseurl/include/acl.js" ></script>
|
||||
<script type="text/javascript" src="$baseurl/include/main.js" ></script>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
var editor;
|
||||
var textlen = 0;
|
||||
|
||||
|
||||
tinyMCE.init({
|
||||
theme : "advanced",
|
||||
mode : "specific_textareas",
|
||||
|
|
@ -26,7 +27,7 @@ tinyMCE.init({
|
|||
content_css: "$baseurl/view/custom_tinymce.css",
|
||||
theme_advanced_path : false,
|
||||
setup : function(ed) {
|
||||
//Character count
|
||||
//Character count
|
||||
ed.onKeyUp.add(function(ed, e) {
|
||||
var txt = tinyMCE.activeEditor.getContent();
|
||||
textlen = txt.length;
|
||||
|
|
@ -53,7 +54,7 @@ tinyMCE.init({
|
|||
$('#character-counter').addClass('red');
|
||||
}
|
||||
$('#character-counter').text(textlen);
|
||||
});
|
||||
});
|
||||
|
||||
ed.onInit.add(function(ed) {
|
||||
ed.pasteAsPlainText = true;
|
||||
|
|
@ -62,11 +63,19 @@ tinyMCE.init({
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="include/ajaxupload.js" ></script>
|
||||
<script>
|
||||
var ispublic = '$ispublic';
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#profile-jot-acl-wrapper").hide();
|
||||
$("a#jot-perms-icon").fancybox({
|
||||
'transitionIn' : 'none',
|
||||
'transitionOut' : 'none'
|
||||
});
|
||||
|
||||
var uploader = new window.AjaxUpload(
|
||||
'wall-image-upload',
|
||||
{ action: 'wall_upload/$nickname',
|
||||
|
|
@ -90,21 +99,6 @@ tinyMCE.init({
|
|||
}
|
||||
);
|
||||
|
||||
/*$('#contact_allow, #contact_deny, #group_allow, #group_deny').change(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-public').hide();
|
||||
$('.profile-jot-net input').attr('disabled', 'disabled');
|
||||
});
|
||||
if(selstr == null) {
|
||||
$('#jot-perms-icon').removeClass('lock').addClass('unlock');
|
||||
$('#jot-public').show();
|
||||
$('.profile-jot-net input').attr('disabled', false);
|
||||
}
|
||||
|
||||
}).trigger('change');*/
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
19
view/jot.tpl
19
view/jot.tpl
|
|
@ -57,19 +57,20 @@
|
|||
<img id="profile-rotator" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
|
||||
</div>
|
||||
<div id="profile-jot-perms" class="profile-jot-perms" style="display: $pvisit;" >
|
||||
<a id="jot-perms-icon" class="icon $lockstate" title="$permset" onClick="openClose('profile-jot-acl-wrapper'); openClose('profile-jot-email-wrapper'); openClose('profile-jot-networks');return false;"></a>$bang
|
||||
<a href="#profile-jot-acl-wrapper" id="jot-perms-icon" class="icon $lockstate" title="$permset" ></a>$bang
|
||||
</div>
|
||||
<div id="profile-jot-perms-end"></div>
|
||||
<div id="profile-jot-email-wrapper" style="display: none;" >
|
||||
<div id="profile-jot-email-label">$emailcc</div><input type="text" name="emailcc" id="profile-jot-email" title="$emtitle" />
|
||||
<div id="profile-jot-email-end"></div>
|
||||
</div>
|
||||
|
||||
<div id="profile-jot-networks" style="display: none;" >
|
||||
$jotnets
|
||||
<div style="display: none;">
|
||||
<div id="profile-jot-acl-wrapper" style="width:auto;height:auto;overflow:auto;">
|
||||
$acl
|
||||
<hr style="clear:both"/>
|
||||
<div id="profile-jot-email-label">$emailcc</div><input type="text" name="emailcc" id="profile-jot-email" title="$emtitle" />
|
||||
<div id="profile-jot-email-end"></div>
|
||||
$jotnets
|
||||
</div>
|
||||
</div>
|
||||
<div id="profile-jot-networks-end"></div>
|
||||
<div id="profile-jot-acl-wrapper" style="display: none;" >$acl</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="profile-jot-end"></div>
|
||||
|
|
|
|||
|
|
@ -1484,9 +1484,9 @@ input#dfrn-url {
|
|||
}
|
||||
|
||||
/** acl **/
|
||||
|
||||
#profile-jot-acl-wrapper{
|
||||
overflow:hidden;
|
||||
height: 100%;
|
||||
display:block!important;
|
||||
}
|
||||
|
||||
#acl-wrapper {
|
||||
|
|
|
|||
|
|
@ -1563,10 +1563,10 @@ padding: 5px 10px 0px;
|
|||
|
||||
/** acl **/
|
||||
#profile-jot-acl-wrapper{
|
||||
overflow:hidden;
|
||||
height: 100%;
|
||||
display:block!important;
|
||||
}
|
||||
|
||||
|
||||
#acl-wrapper {
|
||||
width: 690px;
|
||||
float:left;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue