fix channel creation and management after last changes
This commit is contained in:
parent
dca20f4227
commit
ffadf260c0
@ -22,8 +22,7 @@ function manage_content(&$a) {
|
||||
$channels = null;
|
||||
|
||||
if(local_user()) {
|
||||
$r = q("select channel.*, contact.* from channel left join contact on channel.channel_id = contact.uid
|
||||
where channel.channel_account_id = %d and contact.self = 1",
|
||||
$r = q("select channel.*, xchan.* from channel left join xchan on channel.channel_hash = xchan.xchan_hash where channel.channel_account_id = %d ",
|
||||
intval(get_account_id())
|
||||
);
|
||||
|
||||
|
@ -1 +1 @@
|
||||
2012-10-29.122
|
||||
2012-10-30.123
|
||||
|
@ -1,14 +1,14 @@
|
||||
$(document).ready(function() {
|
||||
$("#newchannel-name").blur(function() {
|
||||
var zreg_name = $("#newchannel-name").val();
|
||||
$.get("newchannel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) {
|
||||
$.get("new_channel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) {
|
||||
$("#newchannel-nickname").val(data);
|
||||
zFormError("#newchannel-name-feedback",data.error);
|
||||
});
|
||||
});
|
||||
$("#newchannel-nickname").blur(function() {
|
||||
var zreg_nick = $("#newchannel-nickname").val();
|
||||
$.get("newchannel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) {
|
||||
$.get("new_channel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) {
|
||||
$("#newchannel-nickname").val(data);
|
||||
zFormError("#newchannel-nickname-feedback",data.error);
|
||||
});
|
||||
|
@ -1,5 +1,5 @@
|
||||
<div class="channel-selection">
|
||||
<a href="$channel.link" class="channel-selection-photo-link" title="$channel.channel_name"><img class="channel-photo" src="$channel.thumb" alt="$channel.channel_name" /></a>
|
||||
<a href="$channel.link" class="channel-selection-photo-link" title="$channel.channel_name"><img class="channel-photo" src="$channel.xchan_photo_m" alt="$channel.channel_name" /></a>
|
||||
<a href="$channel.link" class="channel-selection-name-link" title="$channel.channel_name"><div class="channel-name">$channel.channel_name</div></a>
|
||||
</div>
|
||||
<div class="channel-selection-end"></div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<h2>$title</h2>
|
||||
|
||||
<form action="newchannel" method="post" id="newchannel-form">
|
||||
<form action="new_channel" method="post" id="newchannel-form">
|
||||
|
||||
<div id="newchannel-desc" class="descriptive-paragraph">$desc</div>
|
||||
|
||||
|
Reference in New Issue
Block a user