@ -0,0 +1,16 @@
|
||||
Photo album display? |
||||
|
||||
- The "lock" icon for private items |
||||
- change it to black? |
||||
- when clicked, the popup window displays poorly |
||||
|
||||
- Edit photo page: bottom buttons are off-center in Dolphin Mini |
||||
|
||||
- Pager: looks weird when only "prev" is there |
||||
|
||||
- BB code buttons for status updates |
||||
|
||||
- Get "add contact" back on contacts page |
||||
|
||||
- Admin: access to more pages than summary? |
||||
|
@ -0,0 +1,42 @@
|
||||
<script> |
||||
// update pending count // |
||||
$(function(){ |
||||
|
||||
$("nav").bind('nav-update', function(e,data){ |
||||
var elm = $('#pending-update'); |
||||
var register = $(data).find('register').text(); |
||||
if (register=="0") { reigster=""; elm.hide();} else { elm.show(); } |
||||
elm.html(register); |
||||
}); |
||||
}); |
||||
</script> |
||||
<h4><a href="$admurl">$admtxt</a></h4> |
||||
<ul class='admin linklist'> |
||||
<li class='admin button $admin.site.2'><a href='$admin.site.0'>$admin.site.1</a></li> |
||||
<li class='admin button $admin.users.2'><a href='$admin.users.0'>$admin.users.1</a><span id='pending-update' title='$h_pending'></span></li> |
||||
<li class='admin button $admin.plugins.2'><a href='$admin.plugins.0'>$admin.plugins.1</a></li> |
||||
<li class='admin button $admin.themes.2'><a href='$admin.themes.0'>$admin.themes.1</a></li> |
||||
<li class='admin button $admin.dbsync.2'><a href='$admin.dbsync.0'>$admin.dbsync.1</a></li> |
||||
</ul> |
||||
|
||||
{{ if $admin.update }} |
||||
<ul class='admin linklist'> |
||||
<li class='admin button $admin.update.2'><a href='$admin.update.0'>$admin.update.1</a></li> |
||||
<li class='admin button $admin.update.2'><a href='https://kakste.com/profile/inthegit'>Important Changes</a></li> |
||||
</ul> |
||||
{{ endif }} |
||||
|
||||
|
||||
{{ if $admin.plugins_admin }}<h4>$plugadmtxt</h4>{{ endif }} |
||||
<ul class='admin linklist'> |
||||
{{ for $admin.plugins_admin as $l }} |
||||
<li class='admin button $l.2'><a href='$l.0'>$l.1</a></li> |
||||
{{ endfor }} |
||||
</ul> |
||||
|
||||
|
||||
<h4>$logtxt</h4> |
||||
<ul class='admin linklist'> |
||||
<li class='admin button $admin.logs.2'><a href='$admin.logs.0'>$admin.logs.1</a></li> |
||||
</ul> |
||||
|
@ -0,0 +1,91 @@
|
||||
<!--<script> |
||||
$(function(){ |
||||
|
||||
$("#cnftheme").fancybox({ |
||||
width: 800, |
||||
autoDimensions: false, |
||||
onStart: function(){ |
||||
var theme = $("#id_theme :selected").val(); |
||||
$("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme); |
||||
}, |
||||
onComplete: function(){ |
||||
$("div#fancybox-content form").submit(function(e){ |
||||
var url = $(this).attr('action'); |
||||
// can't get .serialize() to work... |
||||
var data={}; |
||||
$(this).find("input").each(function(){ |
||||
data[$(this).attr('name')] = $(this).val(); |
||||
}); |
||||
$(this).find("select").each(function(){ |
||||
data[$(this).attr('name')] = $(this).children(":selected").val(); |
||||
}); |
||||
console.log(":)", url, data); |
||||
|
||||
$.post(url, data, function(data) { |
||||
if(timer) clearTimeout(timer); |
||||
NavUpdate(); |
||||
$.fancybox.close(); |
||||
}) |
||||
|
||||
return false; |
||||
}); |
||||
|
||||
} |
||||
}); |
||||
}); |
||||
</script>--> |
||||
<div id='adminpage'> |
||||
<h1>$title - $page</h1> |
||||
|
||||
<form action="$baseurl/admin/site" method="post"> |
||||
<input type='hidden' name='form_security_token' value='$form_security_token'> |
||||
|
||||
{{ inc field_input.tpl with $field=$sitename }}{{ endinc }} |
||||
{{ inc field_textarea.tpl with $field=$banner }}{{ endinc }} |
||||
{{ inc field_select.tpl with $field=$language }}{{ endinc }} |
||||
{{ inc field_select.tpl with $field=$theme }}{{ endinc }} |
||||
{{ inc field_select.tpl with $field=$ssl_policy }}{{ endinc }} |
||||
|
||||
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div> |
||||
|
||||
<h3>$registration</h3> |
||||
{{ inc field_input.tpl with $field=$register_text }}{{ endinc }} |
||||
{{ inc field_select.tpl with $field=$register_policy }}{{ endinc }} |
||||
|
||||
{{ inc field_checkbox.tpl with $field=$no_multi_reg }}{{ endinc }} |
||||
{{ inc field_checkbox.tpl with $field=$no_openid }}{{ endinc }} |
||||
{{ inc field_checkbox.tpl with $field=$no_regfullname }}{{ endinc }} |
||||
|
||||
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div> |
||||
|
||||
<h3>$upload</h3> |
||||
{{ inc field_input.tpl with $field=$maximagesize }}{{ endinc }} |
||||
|
||||
<h3>$corporate</h3> |
||||
{{ inc field_input.tpl with $field=$allowed_sites }}{{ endinc }} |
||||
{{ inc field_input.tpl with $field=$allowed_email }}{{ endinc }} |
||||
{{ inc field_checkbox.tpl with $field=$block_public }}{{ endinc }} |
||||
{{ inc field_checkbox.tpl with $field=$force_publish }}{{ endinc }} |
||||
{{ inc field_checkbox.tpl with $field=$no_community_page }}{{ endinc }} |
||||
{{ inc field_checkbox.tpl with $field=$ostatus_disabled }}{{ endinc }} |
||||
{{ inc field_checkbox.tpl with $field=$diaspora_enabled }}{{ endinc }} |
||||
{{ inc field_checkbox.tpl with $field=$dfrn_only }}{{ endinc }} |
||||
{{ inc field_input.tpl with $field=$global_directory }}{{ endinc }} |
||||
|
||||
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div> |
||||
|
||||
<h3>$advanced</h3> |
||||
{{ inc field_checkbox.tpl with $field=$no_utf }}{{ endinc }} |
||||
{{ inc field_checkbox.tpl with $field=$verifyssl }}{{ endinc }} |
||||
{{ inc field_input.tpl with $field=$proxy }}{{ endinc }} |
||||
{{ inc field_input.tpl with $field=$proxyuser }}{{ endinc }} |
||||
{{ inc field_input.tpl with $field=$timeout }}{{ endinc }} |
||||
{{ inc field_input.tpl with $field=$delivery_interval }}{{ endinc }} |
||||
{{ inc field_input.tpl with $field=$poll_interval }}{{ endinc }} |
||||
{{ inc field_input.tpl with $field=$maxloadavg }}{{ endinc }} |
||||
{{ inc field_input.tpl with $field=$abandon_days }}{{ endinc }} |
||||
|
||||
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div> |
||||
|
||||
</form> |
||||
</div> |
After Width: | Height: | Size: 342 B |
@ -0,0 +1,74 @@
|
||||
<script> |
||||
$(document).ready( function () { |
||||
$(document).mouseup(function(e) { |
||||
var container = $("#comment-edit-wrapper-$id"); |
||||
if( container.has(e.target).length === 0) { |
||||
commentClose(document.getElementById('comment-edit-text-$id'),$id); |
||||
cmtBbClose($id); |
||||
} |
||||
}); |
||||
}); |
||||
</script> |
||||
|
||||
<div class="comment-wwedit-wrapper" id="comment-edit-wrapper-$id" style="display: block;" > |
||||
<form class="comment-edit-form" id="comment-edit-form-$id" action="item" method="post" onsubmit="post_comment($id); return false;" > |
||||
<input type="hidden" name="type" value="$type" /> |
||||
<input type="hidden" name="profile_uid" value="$profile_uid" /> |
||||
<input type="hidden" name="parent" value="$parent" /> |
||||
<input type="hidden" name="return" value="$return_path" /> |
||||
<input type="hidden" name="jsreload" value="$jsreload" /> |
||||
<input type="hidden" name="preview" id="comment-preview-inp-$id" value="0" /> |
||||
|
||||
<div class="comment-edit-photo" id="comment-edit-photo-$id" > |
||||
<a class="comment-edit-photo-link" href="$mylink" title="$mytitle"><img class="my-comment-photo" src="$myphoto" alt="$mytitle" title="$mytitle" /></a> |
||||
</div> |
||||
<div class="comment-edit-photo-end"></div> |
||||
<ul class="comment-edit-bb-$id"> |
||||
<li><a class="editicon boldbb shadow" |
||||
style="cursor: pointer;" title="$edbold" |
||||
onclick="insertFormatting('$comment','b', $id);"></a></li> |
||||
<li><a class="editicon italicbb shadow" |
||||
style="cursor: pointer;" title="$editalic" |
||||
onclick="insertFormatting('$comment','i', $id);"></a></li> |
||||
<li><a class="editicon underlinebb shadow" |
||||
style="cursor: pointer;" title="$eduline" |
||||
onclick="insertFormatting('$comment','u', $id);"></a></li> |
||||
<li><a class="editicon quotebb shadow" |
||||
style="cursor: pointer;" title="$edquote" |
||||
onclick="insertFormatting('$comment','quote', $id);"></a></li> |
||||
<li><a class="editicon codebb shadow" |
||||
style="cursor: pointer;" title="$edcode" |
||||
onclick="insertFormatting('$comment','code', $id);"></a></li> |
||||
<!-- <li><a class="editicon imagebb shadow" |
||||
style="cursor: pointer;" title="$edimg" |
||||
onclick="insertFormatting('$comment','img', $id);"></a></li> |
||||
<li><a class="editicon urlbb shadow" |
||||
style="cursor: pointer;" title="$edurl" |
||||
onclick="insertFormatting('$comment','url', $id);"></a></li> |
||||
<li><a class="editicon videobb shadow" |
||||
style="cursor: pointer;" title="$edvideo" |
||||
onclick="insertFormatting('$comment','video', $id);"></a></li>--> |
||||
</ul> |
||||
<div class="comment-edit-bb-end"></div> |
||||
<!-- <textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);cmtBbOpen($id);" onBlur="commentClose(this,$id);cmtBbClose($id);" >$comment</textarea>--> |
||||
<textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);cmtBbOpen($id);" >$comment</textarea> |
||||
{{ if $qcomment }} |
||||
<select id="qcomment-select-$id" name="qcomment-$id" class="qcomment" onchange="qCommentInsert(this,$id);" > |
||||
<option value=""></option> |
||||
{{ for $qcomment as $qc }} |
||||
<option value="$qc">$qc</option> |
||||
{{ endfor }} |
||||
</select> |
||||
{{ endif }} |
||||
|
||||
<div class="comment-edit-text-end"></div> |
||||
<div class="comment-edit-submit-wrapper" id="comment-edit-submit-wrapper-$id" style="display: none;" > |
||||
<input type="submit" onclick="post_comment($id); return false;" id="comment-edit-submit-$id" class="comment-edit-submit" name="submit" value="$submit" /> |
||||
<!--<span onclick="preview_comment($id);" id="comment-edit-preview-link-$id" class="preview-link fakelink">$preview</span> |
||||
<div id="comment-edit-preview-$id" class="comment-edit-preview" style="display:none;"></div>--> |
||||
</div> |
||||
|
||||
<div class="comment-edit-end"></div> |
||||
</form> |
||||
|
||||
</div> |
@ -0,0 +1,30 @@
|
||||
<!--<script language="javascript" type="text/javascript" |
||||
src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script> |
||||
<script language="javascript" type="text/javascript"> |
||||
|
||||
tinyMCE.init({ |
||||
theme : "advanced", |
||||
mode : "$editselect", |
||||
elements: "contact-edit-info", |
||||
plugins : "bbcode", |
||||
theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor", |
||||
theme_advanced_buttons2 : "", |
||||
theme_advanced_buttons3 : "", |
||||
theme_advanced_toolbar_location : "top", |
||||
theme_advanced_toolbar_align : "center", |
||||
theme_advanced_styles : "blockquote,code", |
||||
gecko_spellcheck : true, |
||||
entity_encoding : "raw", |
||||
add_unload_trigger : false, |
||||
remove_linebreaks : false, |
||||
force_p_newlines : false, |
||||
force_br_newlines : true, |
||||
forced_root_block : '', |
||||
content_css: "$baseurl/view/custom_tinymce.css" |
||||
|
||||
|
||||
}); |
||||
|
||||
|
||||
</script> |
||||
--> |
@ -0,0 +1,30 @@
|
||||
|
||||
<div class="contact-entry-wrapper" id="contact-entry-wrapper-$contact.id" > |
||||
<div class="contact-entry-photo-wrapper" > |
||||
<div class="contact-entry-photo mframe" id="contact-entry-photo-$contact.id" |
||||
onmouseover="if (typeof t$contact.id != 'undefined') clearTimeout(t$contact.id);" |
||||
onmouseout="t$contact.id=setTimeout('closeMenu(\'contact-photo-menu-$contact.id\');',200)" > |
||||
|
||||
<!-- <a href="$contact.url" title="$contact.img_hover" /><img src="$contact.thumb" $contact.sparkle alt="$contact.name" /></a>--> |
||||
<span onclick="openClose('contact-photo-menu-$contact.id');" class="fakelink contact-photo-menu-button" id="contact-photo-menu-button-$contact.id"> |
||||
<img src="$contact.thumb" $contact.sparkle alt="$contact.name" /> |
||||
</span> |
||||
|
||||
{{ if $contact.photo_menu }} |
||||
<!-- <span onclick="openClose('contact-photo-menu-$contact.id');" class="fakelink contact-photo-menu-button" id="contact-photo-menu-button-$contact.id">menu</span>--> |
||||
<div class="contact-photo-menu" id="contact-photo-menu-$contact.id"> |
||||
<ul> |
||||
$contact.photo_menu |
||||
</ul> |
||||
</div> |
||||
{{ endif }} |
||||
</div> |
||||
|
||||
</div> |
||||
<div class="contact-entry-photo-end" ></div> |
||||
<div class="contact-entry-name" id="contact-entry-name-$contact.id" >$contact.name</div><br /> |
||||
{{ if $contact.alt_text }}<div class="contact-entry-details" id="contact-entry-rel-$contact.id" >$contact.alt_text</div>{{ endif }} |
||||
<div class="contact-entry-network" id="contact-entry-network-$contact.id" >$contact.network</div> |
||||
|
||||
<div class="contact-entry-end" ></div> |
||||
</div> |
@ -0,0 +1,28 @@
|
||||
<h1>$header{{ if $total }} ($total){{ endif }}</h1> |
||||
|
||||
{{ if $finding }}<h4>$finding</h4>{{ endif }} |
||||
|
||||
<div id="contacts-search-wrapper"> |
||||
<form id="contacts-search-form" action="$cmd" method="get" > |
||||
<span class="contacts-search-desc">$desc</span> |
||||
<input type="text" name="search" id="contacts-search" class="search-input" onfocus="this.select();" value="$search" /> |
||||
<input type="submit" name="submit" id="contacts-search-submit" value="$submit" /> |
||||
</form> |
||||
</div> |
||||
<div id="contacts-search-end"></div> |
||||
|
||||
$tabs |
||||
|
||||
|
||||
<div id="contacts-display-wrapper"> |
||||
{{ for $contacts as $contact }} |
||||
{{ inc contact_template.tpl }}{{ endinc }} |
||||
{{ endfor }} |
||||
</div> |
||||
<div id="contact-edit-end"></div> |
||||
|
||||
$paginate |
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
{{ for $threads as $thread }} |
||||
<div id="tread-wrapper-$thread.id" class="tread-wrapper"> |
||||
{{ for $thread.items as $item }} |
||||
{{if $item.comment_firstcollapsed}} |
||||
<div class="hide-comments-outer"> |
||||
<span id="hide-comments-total-$thread.id" class="hide-comments-total">$thread.num_comments</span> <span id="hide-comments-$thread.id" class="hide-comments fakelink" onclick="showHideComments($thread.id);">$thread.hide_text</span> |
||||
</div> |
||||
<div id="collapsed-comments-$thread.id" class="collapsed-comments" style="display: none;"> |
||||
{{endif}} |
||||
{{if $item.comment_lastcollapsed}}</div>{{endif}} |
||||
|
||||
{{ inc $item.template }}{{ endinc }} |
||||
|
||||
|
||||
{{ endfor }} |
||||
</div> |
||||
{{ endfor }} |
||||
|
||||
<div id="conversation-end"></div> |
||||
|
||||
<!--{{ if $dropping }} |
||||
<div id="item-delete-selected" class="fakelink" onclick="deleteCheckedItems();"> |
||||
<div id="item-delete-selected-icon" class="icon drophide" title="$dropping" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></div> |
||||
<div id="item-delete-selected-desc" >$dropping</div> |
||||
</div> |
||||
<div id="item-delete-selected-end"></div>--> |
||||
{{ endif }} |
@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html > |
||||
<html> |
||||
<head> |
||||
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
|
||||
<script>var baseurl="<?php echo $a->get_baseurl() ?>";</script>
|
||||
<?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?> |
||||
</head> |
||||
<body> |
||||
<?php if( $a->module === 'home' ) { ?> |
||||
<center> |
||||
<div class="login-button"> |
||||
<a href="login" class="login-button-link"><img class="login-button-image" src="/images/friendika-1600.png" title="Click to log in"></a> |
||||
</div> |
||||
</center> |
||||
<?php } elseif ( $a->module === 'login' || $a->module === 'register' || $a->module === 'lostpass' ) { |
||||
?> |
||||
|
||||
<div class='section-wrapper'> |
||||
<section><?php if(x($page,'content')) echo $page['content']; ?> |
||||
</section> |
||||
</div> |
||||
|
||||
<?php } else { |
||||
|
||||
if(x($page,'nav')) echo $page['nav']; ?> |
||||
<div class='main-container'> |
||||
<div class='main-content-container'> |
||||
<aside><?php if(x($page,'aside')) echo $page['aside']; ?></aside>
|
||||
<div class='section-wrapper'> |
||||
<section><?php if(x($page,'content')) echo $page['content']; ?> |
||||
<div id="page-footer"></div> |
||||
</section> |
||||
</div> |
||||
<right_aside><?php if(x($page,'right_aside')) echo $page['right_aside']; ?></right_aside>
|
||||
<footer><?php if(x($page,'footer')) echo $page['footer']; ?></footer>
|
||||
</div> |
||||
</div> |
||||
<?php } ?> |
||||
</body> |
||||
</html> |
||||
|
After Width: | Height: | Size: 6.2 KiB |
@ -0,0 +1,139 @@
|
||||
<link rel='stylesheet' type='text/css' href='$baseurl/library/fullcalendar/fullcalendar.css' /> |
||||
<script language="javascript" type="text/javascript" |
||||
src="$baseurl/library/fullcalendar/fullcalendar.min.js"></script> |
||||
|
||||
<script> |
||||
function showEvent(eventid) { |
||||
/* $.get( |
||||
'$baseurl/events/?id='+eventid, |
||||
function(data){ |
||||
$.fancybox(data); |
||||
} |
||||
); */ |
||||
} |
||||
|
||||
$(document).ready(function() { |
||||
$('#events-calendar').fullCalendar({ |
||||
events: '$baseurl/events/json/', |
||||
header: { |
||||
left: 'prev,next today', |
||||
center: 'title', |
||||
right: 'month,agendaWeek,agendaDay' |
||||
}, |
||||
timeFormat: 'H(:mm)', |
||||
eventClick: function(calEvent, jsEvent, view) { |
||||
showEvent(calEvent.id); |
||||
}, |
||||
|
||||
eventRender: function(event, element, view) { |
||||
//console.log(view.name); |
||||
if (event.item['author-name']==null) return; |
||||
switch(view.name){ |
||||
case "month": |
||||
element.find(".fc-event-title").html( |
||||
"<img src='{0}' style='height:10px;width:10px'>{1} : {2}".format( |
||||
event.item['author-avatar'], |
||||
event.item['author-name'], |
||||
event.title |
||||
)); |
||||
break; |
||||
case "agendaWeek": |
||||
element.find(".fc-event-title").html( |
||||
"<img src='{0}' style='height:12px; width:12px'>{1}<p>{2}</p><p>{3}</p>".format( |
||||
event.item['author-avatar'], |
||||
event.item['author-name'], |
||||
event.item.desc, |
||||
event.item.location |
||||
)); |
||||
break; |
||||
case "agendaDay": |
||||
element.find(".fc-event-title").html( |
||||
"<img src='{0}' style='height:24px;width:24px'>{1}<p>{2}</p><p>{3}</p>".format( |
||||
event.item['author-avatar'], |
||||
event.item['author-name'], |
||||
event.item.desc, |
||||
event.item.location |
||||
)); |
||||
break; |
||||
} |
||||
} |
||||
|
||||
}) |
||||
|
||||
// center on date |
||||
var args=location.href.replace(baseurl,"").split("/"); |
||||
if (args.length>=4) { |
||||
$("#events-calendar").fullCalendar('gotoDate',args[2] , args[3]-1); |
||||
} |
||||
|
||||
// show event popup |
||||
var hash = location.hash.split("-") |
||||
if (hash.length==2 && hash[0]=="#link") showEvent(hash[1]); |
||||
|
||||
}); |
||||
</script> |
||||
|
||||
|
||||
<!--<script language="javascript" type="text/javascript" |
||||
src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>--> |
||||
<script language="javascript" type="text/javascript"> |
||||
|
||||
/* |
||||
tinyMCE.init({ |
||||
theme : "advanced", |
||||
mode : "textareas", |
||||
plugins : "bbcode,paste", |
||||
theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code", |
||||
theme_advanced_buttons2 : "", |
||||
theme_advanced_buttons3 : "", |
||||
theme_advanced_toolbar_location : "top", |
||||
theme_advanced_toolbar_align : "center", |
||||
theme_advanced_blockformats : "blockquote,code", |
||||
gecko_spellcheck : true, |
||||
paste_text_sticky : true, |
||||
entity_encoding : "raw", |
||||
add_unload_trigger : false, |
||||
remove_linebreaks : false, |
||||
force_p_newlines : false, |
||||
force_br_newlines : true, |
||||
forced_root_block : '', |
||||
content_css: "$baseurl/view/custom_tinymce.css", |
||||
theme_advanced_path : false, |
||||
setup : function(ed) { |
||||
ed.onInit.add(function(ed) { |
||||
ed.pasteAsPlainText = true; |
||||
}); |
||||
} |
||||
|
||||
}); |
||||
*/ |
||||
|
||||
$(document).ready(function() { |
||||
|
||||
$('#event-share-checkbox').change(function() { |
||||
|
||||
if ($('#event-share-checkbox').is(':checked')) { |
||||
$('#acl-wrapper').show(); |
||||
} |
||||
else { |
||||
$('#acl-wrapper').hide(); |
||||
} |
||||
}).trigger('change'); |
||||
|
||||
|
||||
$('#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-public').hide(); |
||||
}); |
||||
if(selstr == null) { |
||||
$('#jot-public').show(); |
||||
} |
||||
|
||||
}).trigger('change'); |
||||
|
||||
}); |
||||
|
||||
</script> |
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
<div class='field input' id='wrapper_$field.0'> |
||||
<label for='id_$field.0'>$field.1</label><br /> |
||||
<input name='$field.0' id='id_$field.0' value="$field.2"> |
||||
<span class='field_help'>$field.3</span> |
||||
</div> |
@ -0,0 +1,6 @@
|
||||
|
||||
<div class='field input openid' id='wrapper_$field.0'> |
||||
<label for='id_$field.0'>$field.1</label><br /> |
||||
<input name='$field.0' id='id_$field.0' value="$field.2"> |
||||
<span class='field_help'>$field.3</span> |
||||
</div> |
@ -0,0 +1,6 @@
|
||||
|
||||
<div class='field password' id='wrapper_$field.0'> |
||||
<label for='id_$field.0'>$field.1</label><br /> |
||||
<input type='password' name='$field.0' id='id_$field.0' value="$field.2"> |
||||
<span class='field_help'>$field.3</span> |
||||
</div> |
After Width: | Height: | Size: 615 B |
After Width: | Height: | Size: 699 B |
After Width: | Height: | Size: 383 B |
@ -0,0 +1,105 @@
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
||||
<meta content='width=device-width, minimum-scale=1 maximum-scale=1' name='viewport'> |
||||
<meta content='True' name='HandheldFriendly'> |
||||
<meta content='320' name='MobileOptimized'> |
||||
<base href="$baseurl/" /> |
||||
<meta name="generator" content="$generator" /> |
||||
<!--<link rel="stylesheet" href="$baseurl/library/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" /> |
||||
<link rel="stylesheet" href="$baseurl/library/tiptip/tipTip.css" type="text/css" media="screen" />--> |
||||
<link rel="stylesheet" href="$baseurl/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" /> |
||||
|
||||
<link rel="stylesheet" type="text/css" href="$stylesheet" media="all" /> |
||||
|
||||
<link rel="shortcut icon" href="$baseurl/images/friendica-32.png" /> |
||||
<link rel="search" |
||||
href="$baseurl/opensearch" |
||||
type="application/opensearchdescription+xml" |
||||
title="Search in Friendica" /> |
||||
|
||||
<!--[if IE]> |
||||
<script type="text/javascript" src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script> |
||||
<![endif]--> |
||||
<script type="text/javascript" src="$baseurl/js/jquery.js" ></script> |
||||
<script type="text/javascript" src="$baseurl/js/jquery.textinputs.js" ></script> |
||||
<script type="text/javascript" src="$baseurl/js/fk.autocomplete.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/tiptip/jquery.tipTip.minified.js"></script>--> |
||||
<script type="text/javascript" src="$baseurl/library/jgrowl/jquery.jgrowl_minimized.js"></script> |
||||
<!--<script type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>--> |
||||
<script type="text/javascript" src="$baseurl/view/theme/frost-mobile/js/acl.js" ></script> |
||||
<script type="text/javascript" src="$baseurl/js/webtoolkit.base64.js" ></script> |
||||
<script type="text/javascript" src="$baseurl/view/theme/frost-mobile/js/main.js" ></script> |
||||
<script type="text/javascript" src="$baseurl/view/theme/frost-mobile/js/theme.js"></script> |
||||
<script> |
||||
|
||||
var updateInterval = $update_interval; |
||||
var localUser = {{ if $local_user }}$local_user{{ else }}false{{ endif }}; |
||||
|
||||
function confirmDelete() { return confirm("$delitem"); } |
||||
function commentOpen(obj,id) { |
||||
if(obj.value == '$comment') { |
||||
obj.value = ''; |
||||
$("#comment-edit-text-" + id).addClass("comment-edit-text-full"); |
||||
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); |
||||
$("#mod-cmnt-wrap-" + id).show(); |
||||
openMenu("comment-edit-submit-wrapper-" + id); |
||||
} |
||||
} |
||||
function commentClose(obj,id) { |
||||
if(obj.value == '') { |
||||
obj.value = '$comment'; |
||||
$("#comment-edit-text-" + id).removeClass("comment-edit-text-full"); |
||||
$("#comment-edit-text-" + id).addClass("comment-edit-text-empty"); |
||||
$("#mod-cmnt-wrap-" + id).hide(); |
||||
closeMenu("comment-edit-submit-wrapper-" + id); |
||||
} |
||||
} |
||||
|
||||
|
||||
function commentInsert(obj,id) { |
||||
var tmpStr = $("#comment-edit-text-" + id).val(); |
||||
if(tmpStr == '$comment') { |
||||
tmpStr = ''; |
||||
$("#comment-edit-text-" + id).addClass("comment-edit-text-full"); |
||||
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); |
||||
openMenu("comment-edit-submit-wrapper-" + id); |
||||
} |
||||
var ins = $(obj).html(); |
||||
ins = ins.replace('<','<'); |
||||
ins = ins.replace('>','>'); |
||||
ins = ins.replace('&','&'); |
||||
ins = ins.replace('"','"'); |
||||
$("#comment-edit-text-" + id).val(tmpStr + ins); |
||||
} |
||||
|
||||
function qCommentInsert(obj,id) { |
||||
var tmpStr = $("#comment-edit-text-" + id).val(); |
||||
if(tmpStr == '$comment') { |
||||
tmpStr = ''; |
||||
$("#comment-edit-text-" + id).addClass("comment-edit-text-full"); |
||||
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); |
||||
openMenu("comment-edit-submit-wrapper-" + id); |
||||
} |
||||
var ins = $(obj).val(); |
||||
ins = ins.replace('<','<'); |
||||
ins = ins.replace('>','>'); |
||||
ins = ins.replace('&','&'); |
||||
ins = ins.replace('"','"'); |
||||
$("#comment-edit-text-" + id).val(tmpStr + ins); |
||||
$(obj).val(''); |
||||
} |
||||
|
||||
function showHideComments(id) { |
||||
if( $('#collapsed-comments-' + id).is(':visible')) { |
||||
$('#collapsed-comments-' + id).hide(); |
||||
$('#hide-comments-' + id).html('$showmore'); |
||||
} |
||||
else { |
||||
$('#collapsed-comments-' + id).show(); |
||||
$('#hide-comments-' + id).html('$showfewer'); |
||||
} |
||||
} |
||||
|
||||
|
||||
</script> |
||||
|
After Width: | Height: | Size: 562 B |
After Width: | Height: | Size: 475 B |
After Width: | Height: | Size: 282 B |
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 574 B |
After Width: | Height: | Size: 530 B |
After Width: | Height: | Size: 488 B |
After Width: | Height: | Size: 813 B |
After Width: | Height: | Size: 568 B |
After Width: | Height: | Size: 480 B |
After Width: | Height: | Size: 425 B |
After Width: | Height: | Size: 416 B |
After Width: | Height: | Size: 321 B |
After Width: | Height: | Size: 305 B |
After Width: | Height: | Size: 266 B |
After Width: | Height: | Size: 219 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 398 B |
After Width: | Height: | Size: 520 B |
After Width: | Height: | Size: 1019 B |
After Width: | Height: | Size: 708 B |
After Width: | Height: | Size: 770 B |
After Width: | Height: | Size: 923 B |
After Width: | Height: | Size: 821 B |
After Width: | Height: | Size: 594 B |
After Width: | Height: | Size: 402 B |
After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 1014 B |
After Width: | Height: | Size: 795 B |
After Width: | Height: | Size: 613 B |
After Width: | Height: | Size: 534 B |
After Width: | Height: | Size: 649 B |
After Width: | Height: | Size: 633 B |
After Width: | Height: | Size: 515 B |
After Width: | Height: | Size: 432 B |
After Width: | Height: | Size: 291 B |
After Width: | Height: | Size: 454 B |
After Width: | Height: | Size: 572 B |
@ -0,0 +1,212 @@
|
||||
|
||||
<script type="text/javascript" src="$baseurl/js/ajaxupload.js" ></script> |
||||
|
||||
<script> |
||||
var ispublic = '$ispublic'; |
||||
|
||||
$(document).ready(function() { |
||||
|
||||
/* enable tinymce on focus and click */ |
||||
$("#profile-jot-text").focus(enableOnUser); |
||||
$("#profile-jot-text").click(enableOnUser); |
||||
|
||||
var uploader = new window.AjaxUpload( |
||||
'wall-image-upload', |
||||
{ action: 'wall_upload/$nickname', |
||||
name: 'userfile', |
||||
onSubmit: function(file,ext) { $('#profile-rotator').show(); }, |
||||
onComplete: function(file,response) { |
||||
addeditortext(response); |
||||
$('#profile-rotator').hide(); |
||||
} |
||||
} |
||||
); |
||||
var file_uploader = new window.AjaxUpload( |
||||
'wall-file-upload', |
||||
{ action: 'wall_attach/$nickname', |
||||
name: 'userfile', |
||||
onSubmit: function(file,ext) { $('#profile-rotator').show(); }, |
||||
onComplete: function(file,response) { |
||||
addeditortext(response); |
||||
$('#profile-rotator').hide(); |
||||
} |
||||
} |
||||
); |
||||
|
||||
|
||||
}); |
||||
|
||||
/* function deleteCheckedItems() { |
||||
var checkedstr = ''; |
||||
|
||||
$('.item-select').each( function() { |
||||
if($(this).is(':checked')) { |
||||
if(checkedstr.length != 0) { |
||||
checkedstr = checkedstr + ',' + $(this).val(); |
||||
} |
||||
else { |
||||
checkedstr = $(this).val(); |
||||
} |
||||
} |
||||
}); |
||||
$.post('item', { dropitems: checkedstr }, function(data) { |
||||
window.location.reload(); |
||||
}); |
||||
}*/ |
||||
|
||||
function jotGetLink() { |
||||
reply = prompt("$linkurl"); |
||||
if(reply && reply.length) { |
||||
reply = bin2hex(reply); |
||||
$('#profile-rotator').show(); |
||||
$.get('parse_url?binurl=' + reply, function(data) { |
||||
addeditortext(data); |
||||
$('#profile-rotator').hide(); |
||||
}); |
||||
} |
||||
} |
||||
|
||||
function jotVideoURL() { |
||||
reply = prompt("$vidurl"); |
||||
if(reply && reply.length) { |
||||
addeditortext('[video]' + reply + '[/video]'); |
||||
} |
||||
} |
||||
|
||||
function jotAudioURL() { |
||||
reply = prompt("$audurl"); |
||||
if(reply && reply.length) { |
||||
addeditortext('[audio]' + reply + '[/audio]'); |
||||
} |
||||
} |
||||
|
||||
|
||||
function jotGetLocation() { |
||||
reply = prompt("$whereareu", $('#jot-location').val()); |
||||
if(reply && reply.length) { |
||||
$('#jot-location').val(reply); |
||||
} |
||||
} |
||||
|
||||
function jotShare(id) { |
||||
if ($('#jot-popup').length != 0) $('#jot-popup').show(); |
||||
|
||||
$('#like-rotator-' + id).show(); |
||||
$.get('share/' + id, function(data) { |
||||
if (!editor) $("#profile-jot-text").val(""); |
||||
initEditor(function(){ |
||||
addeditortext(data); |
||||
$('#like-rotator-' + id).hide(); |
||||
$(window).scrollTop(0); |
||||
}); |
||||
|
||||
}); |
||||
} |
||||
|
||||
/* function linkdropper(event) { |
||||
var linkFound = event.dataTransfer.types.contains("text/uri-list"); |
||||
if(linkFound) |
||||
event.preventDefault(); |
||||
} |
||||
|
||||
function linkdrop(event) { |
||||
var reply = event.dataTransfer.getData("text/uri-list"); |
||||
event.target.textContent = reply; |
||||
event.preventDefault(); |
||||
if(reply && reply.length) { |
||||
reply = bin2hex(reply); |
||||
$('#profile-rotator').show(); |
||||
$.get('parse_url?binurl=' + reply, function(data) { |
||||
if (!editor) $("#profile-jot-text").val(""); |
||||
initEditor(function(){ |
||||
addeditortext(data); |
||||
$('#profile-rotator').hide(); |
||||
}); |
||||
}); |
||||
} |
||||
}*/ |
||||
|
||||
function itemTag(id) { |
||||
reply = prompt("$term"); |
||||
if(reply && reply.length) { |
||||
reply = reply.replace('#',''); |
||||
if(reply.length) { |
||||
|
||||
commentBusy = true; |
||||
$('body').css('cursor', 'wait'); |
||||
|
||||
$.get('tagger/' + id + '?term=' + reply); |
||||
if(timer) clearTimeout(timer); |
||||
timer = setTimeout(NavUpdate,3000); |
||||
liking = 1; |
||||
} |
||||
} |
||||
} |
||||
|
||||
function itemFiler(id) { |
||||
|
||||
$.get('filer/', function(data){ |
||||
|
||||
var promptText = $('#id_term_label', data).text(); |
||||
|
||||
reply = prompt(promptText); |
||||
if(reply && reply.length) { |
||||
commentBusy = true; |
||||
$('body').css('cursor', 'wait'); |
||||
$.get('filer/' + id + '?term=' + reply, NavUpdate); |
||||
/* if(timer) clearTimeout(timer); |
||||
timer = setTimeout(NavUpdate,3000);*/ |
||||
liking = 1; |
||||
/* $.fancybox.close();*/ |
||||
} |
||||
}); |
||||
|
||||
/* var bordercolor = $("input").css("border-color"); |
||||
|
||||
$.get('filer/', function(data){ |
||||
$.fancybox(data); |
||||
$("#id_term").keypress(function(){ |
||||
$(this).css("border-color",bordercolor); |
||||
}) |
||||
$("#select_term").change(function(){ |
||||
$("#id_term").css("border-color",bordercolor); |
||||
}) |
||||
|
||||
$("#filer_save").click(function(e){ |
||||
e.preventDefault(); |
||||
reply = $("#id_term").val(); |
||||
if(reply && reply.length) { |
||||
commentBusy = true; |
||||
$('body').css('cursor', 'wait'); |
||||
$.get('filer/' + id + '?term=' + reply); |
||||
if(timer) clearTimeout(timer); |
||||
timer = setTimeout(NavUpdate,3000); |
||||
liking = 1; |
||||
$.fancybox.close(); |
||||
} else { |
||||
$("#id_term").css("border-color","#FF0000"); |
||||
} |
||||
return false; |
||||
}); |
||||
}); |
||||
*/ |
||||
} |
||||
|
||||
function jotClearLocation() { |
||||
$('#jot-coord').val(''); |
||||
$('#profile-nolocation-wrapper').hide(); |
||||
} |
||||
|
||||
function addeditortext(data) { |
||||
if(plaintext == 'none') { |
||||
var currentText = $("#profile-jot-text").val(); |
||||
$("#profile-jot-text").val(currentText + data); |
||||
} |
||||
/* else |
||||
tinyMCE.execCommand('mceInsertRawHTML',false,data);*/ |
||||
} |
||||
|
||||
$geotag |
||||
|
||||
</script> |
||||
|
@ -0,0 +1,85 @@
|
||||
|
||||
<div id="profile-jot-wrapper" > |
||||
<div id="profile-jot-banner-wrapper"> |
||||
<div id="profile-jot-desc" > </div> |
||||
<div id="character-counter" class="grey"></div> |
||||
</div> |
||||
<div id="profile-jot-banner-end"></div> |
||||
|
||||
<form id="profile-jot-form" action="$action" method="post" > |
||||
<input type="hidden" name="type" value="$ptyp" /> |
||||
<input type="hidden" name="profile_uid" value="$profile_uid" /> |
||||
<input type="hidden" name="return" value="$return_path" /> |
||||
<input type="hidden" name="location" id="jot-location" value="$defloc" /> |
||||
<input type="hidden" name="coord" id="jot-coord" value="" /> |
||||
<input type="hidden" name="post_id" value="$post_id" /> |
||||
<input type="hidden" name="preview" id="jot-preview" value="0" /> |
||||
<div id="jot-title-wrap"><input name="title" id="jot-title" type="text" placeholder="$placeholdertitle" value="$title" class="jothidden" style="display:none"></div> |
||||
<div id="jot-category-wrap"><input name="category" id="jot-category" type="text" placeholder="$placeholdercategory" value="$category" class="jothidden" style="display:none" /></div> |
||||
<div id="jot-text-wrap"> |
||||
<!--<img id="profile-jot-text-loading" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />--> |
||||
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >{{ if $content }}$content{{ else }}$share{{ endif }}</textarea> |
||||
</div> |
||||
|
||||
<div id="profile-jot-submit-wrapper" class="jothidden"> |
||||
<input type="submit" id="profile-jot-submit" name="submit" value="$share" /> |
||||
|
||||
<div id="profile-upload-wrapper" style="display: $visitor;" > |
||||
<div id="wall-image-upload-div" ><a href="#" onclick="return false;" id="wall-image-upload" class="icon camera" title="$upload"></a></div> |
||||
</div> |
||||
<div id="profile-attach-wrapper" style="display: $visitor;" > |
||||
<div id="wall-file-upload-div" ><a href="#" onclick="return false;" id="wall-file-upload" class="icon attach" title="$attach"></a></div> |
||||
</div> |
||||
|
||||
<div id="profile-link-wrapper" style="display: $visitor;" ondragenter="linkdropper(event);" ondragover="linkdropper(event);" ondrop="linkdrop(event);" > |
||||
<a id="profile-link" class="icon link" title="$weblink" ondragenter="return linkdropper(event);" ondragover="return linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink(); return false;"></a> |
||||
</div> |
||||
<div id="profile-video-wrapper" style="display: $visitor;" > |
||||
<a id="profile-video" class="icon video" title="$video" onclick="jotVideoURL();return false;"></a> |
||||
</div> |
||||
<div id="profile-audio-wrapper" style="display: $visitor;" > |
||||
<a id="profile-audio" class="icon audio" title="$audio" onclick="jotAudioURL();return false;"></a> |
||||
</div> |
||||
<div id="profile-location-wrapper" style="display: $visitor;" > |
||||
<a id="profile-location" class="icon globe" title="$setloc" onclick="jotGetLocation();return false;"></a> |
||||
</div> |
||||
<div id="profile-nolocation-wrapper" style="display: none;" > |
||||
<a id="profile-nolocation" class="icon noglobe" title="$noloc" onclick="jotClearLocation();return false;"></a> |
||||
</div> |
||||
|
||||
<div id="profile-jot-perms" class="profile-jot-perms" style="display: $pvisit;" > |
||||
<a href="#profile-jot-acl-wrapper" id="jot-perms-icon" class="icon $lockstate" title="$permset" ></a>$bang |
||||
</div> |
||||
|
||||
<span onclick="preview_post();" id="jot-preview-link" class="fakelink">$preview</span> |
||||
|
||||
<div id="profile-jot-perms-end"></div> |
||||
|
||||
|
||||
<div id="profile-jot-plugin-wrapper"> |
||||
$jotplugins |
||||
</div> |
||||
|
||||
<div id="profile-rotator-wrapper" style="display: $visitor;" > |
||||
<img id="profile-rotator" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" /> |
||||
</div> |
||||
|
||||
<div id="jot-preview-content" style="display:none;"></div> |
||||
|
||||
<div style="display: none;"> |
||||
<div id="profile-jot-acl-wrapper"> |
||||
$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> |
||||
|
||||
<div id="profile-jot-end"></div> |
||||
</form> |
||||
</div> |
||||
{{ if $content }}<script>initEditor();</script>{{ endif }} |
@ -0,0 +1,258 @@
|
||||
function ACL(backend_url, preset){ |
||||
that = this; |
||||
|
||||
that.url = backend_url; |
||||
|
||||
that.kp_timer = null; |
||||
|
||||
if (preset==undefined) preset = []; |
||||
that.allow_cid = (preset[0] || []); |
||||
that.allow_gid = (preset[1] || []); |
||||
that.deny_cid = (preset[2] || []); |
||||
that.deny_gid = (preset[3] || []); |
||||
that.group_uids = []; |
||||
that.nw = 2; //items per row. should be calulated from #acl-list.width
|
||||
|
||||
that.list_content = $("#acl-list-content"); |
||||
that.item_tpl = unescape($(".acl-list-item[rel=acl-template]").html()); |
||||
that.showall = $("#acl-showall"); |
||||
|
||||
if (preset.length==0) that.showall.addClass("selected"); |
||||
|
||||
/*events*/ |
||||
that.showall.click(that.on_showall); |
||||
$(".acl-button-show").live('click', that.on_button_show); |
||||
$(".acl-button-hide").live('click', that.on_button_hide); |
||||
$("#acl-search").keypress(that.on_search); |
||||
$("#acl-wrapper").parents("form").submit(that.on_submit); |
||||
|
||||
/* startup! */ |
||||
that.get(0,100); |
||||
} |
||||
|
||||
ACL.prototype.on_submit = function(){ |
||||
aclfileds = $("#acl-fields").html(""); |
||||
$(that.allow_gid).each(function(i,v){ |
||||
aclfileds.append("<input type='hidden' name='group_allow[]' value='"+v+"'>"); |
||||
}); |
||||
$(that.allow_cid).each(function(i,v){ |
||||
aclfileds.append("<input type='hidden' name='contact_allow[]' value='"+v+"'>"); |
||||
}); |
||||
$(that.deny_gid).each(function(i,v){ |
||||
aclfileds.append("<input type='hidden' name='group_deny[]' value='"+v+"'>"); |
||||
}); |
||||
$(that.deny_cid).each(function(i,v){ |
||||
aclfileds.append("<input type='hidden' name='contact_deny[]' value='"+v+"'>"); |
||||
});
|
||||
} |
||||
|
||||
ACL.prototype.search = function(){ |
||||
var srcstr = $("#acl-search").val(); |
||||
that.list_content.html(""); |
||||
that.get(0,100, srcstr); |
||||
} |
||||
|
||||
ACL.prototype.on_search = function(event){ |
||||
if (that.kp_timer) clearTimeout(that.kp_timer); |
||||
that.kp_timer = setTimeout( that.search, 1000); |
||||
} |
||||
|
||||
ACL.prototype.on_showall = function(event){ |
||||
event.preventDefault() |
||||
event.stopPropagation(); |
||||
|
||||
if (that.showall.hasClass("selected")){ |
||||
return false; |
||||
} |
||||
that.showall.addClass("selected"); |
||||
|
||||
that.allow_cid = []; |
||||
that.allow_gid = []; |
||||
that.deny_cid = []; |
||||
that.deny_gid = []; |
||||
|
||||
that.update_view(); |
||||
|
||||
return false; |
||||
} |
||||
|
||||
ACL.prototype.on_button_show = function(event){ |
||||
event.preventDefault() |
||||
event.stopImmediatePropagation() |
||||
event.stopPropagation(); |
||||
|
||||
/*that.showall.removeClass("selected"); |
||||
$(this).siblings(".acl-button-hide").removeClass("selected"); |
||||
$(this).toggleClass("selected");*/ |
||||
|
||||
that.set_allow($(this).parent().attr('id')); |
||||
|
||||
return false; |
||||
} |
||||
ACL.prototype.on_button_hide = function(event){ |
||||
event.preventDefault() |
||||
event.stopImmediatePropagation() |
||||
event.stopPropagation(); |
||||
|
||||
/*that.showall.removeClass("selected"); |
||||
$(this).siblings(".acl-button-show").removeClass("selected"); |
||||
$(this).toggleClass("selected");*/ |
||||
|
||||
that.set_deny($(this).parent().attr('id')); |
||||
|
||||
return false; |
||||
} |
||||
|
||||
ACL.prototype.set_allow = function(itemid){ |
||||
type = itemid[0]; |
||||
id = parseInt(itemid.substr(1)); |
||||
switch(type){ |
||||
case "g": |
||||
if (that.allow_gid.indexOf(id)<0){ |
||||
that.allow_gid.push(id) |
||||
}else { |
||||
that.allow_gid.remove(id); |
||||
} |
||||
if (that.deny_gid.indexOf(id)>=0) that.deny_gid.remove(id); |
||||
break; |
||||
case "c": |
||||
if (that.allow_cid.indexOf(id)<0){ |
||||
that.allow_cid.push(id) |
||||
} else { |
||||
that.allow_cid.remove(id); |
||||
} |
||||
if (that.deny_cid.indexOf(id)>=0) that.deny_cid.remove(id);
|
||||
break; |
||||
} |
||||
that.update_view(); |
||||
} |
||||
|
||||
ACL.prototype.set_deny = function(itemid){ |
||||
type = itemid[0]; |
||||
id = parseInt(itemid.substr(1)); |
||||
switch(type){ |
||||
case "g": |
||||
if (that.deny_gid.indexOf(id)<0){ |
||||
that.deny_gid.push(id) |
||||
} else { |
||||
that.deny_gid.remove(id); |
||||
} |
||||
if (that.allow_gid.indexOf(id)>=0) that.allow_gid.remove(id); |
||||
break; |
||||
case "c": |
||||
if (that.deny_cid.indexOf(id)<0){ |
||||
that.deny_cid.push(id) |
||||
} else { |
||||
that.deny_cid.remove(id); |
||||
} |
||||
if (that.allow_cid.indexOf(id)>=0) that.allow_cid.remove(id); |
||||
break; |
||||
} |
||||
that.update_view(); |
||||
} |
||||
|
||||
ACL.prototype.update_view = function(){ |
||||
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('lock').addClass('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("selected"); |
||||
/* jot acl */ |
||||
$('#jot-perms-icon').removeClass('unlock').addClass('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"); |
||||
}); |
||||
|
||||
$("#acl-list-content .acl-list-item").each(function(){ |
||||
itemid = $(this).attr('id'); |
||||
type = itemid[0]; |
||||
id = parseInt(itemid.substr(1)); |
||||
|
||||
btshow = $(this).children(".acl-button-show").removeClass("selected"); |
||||
bthide = $(this).children(".acl-button-hide").removeClass("selected");
|
||||
|
||||
switch(type){ |
||||
case "g": |
||||
var uclass = ""; |
||||
if (that.allow_gid.indexOf(id)>=0){ |
||||
btshow.addClass("selected"); |
||||
bthide.removeClass("selected"); |
||||