hide and disable ToSelector for replies

This commit is contained in:
Evan Prodromou 2011-04-11 12:55:49 -04:00
parent d197c86a61
commit 09cffc1928
3 changed files with 9 additions and 1 deletions

View File

@ -655,6 +655,10 @@ var SN = { // StatusNet
var nextStep = function() { var nextStep = function() {
// Override...? // Override...?
replyForm.find('input[name=inreplyto]').val(id); replyForm.find('input[name=inreplyto]').val(id);
replyForm.find('#notice_to').attr('disabled', 'disabled').hide();
replyForm.find('#notice_private').attr('disabled', 'disabled').hide();
replyForm.find('label[for=notice_to]').hide();
replyForm.find('label[for=notice_private]').hide();
// Set focus... // Set focus...
var text = replyForm.find('textarea'); var text = replyForm.find('textarea');

2
js/util.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -132,6 +132,10 @@ class ToSelector extends Widget
$toArg = $action->trimmed('notice_to'); $toArg = $action->trimmed('notice_to');
$private = $action->boolean('notice_private'); $private = $action->boolean('notice_private');
if (empty($toArg)) {
return;
}
list($prefix, $value) = explode(':', $toArg); list($prefix, $value) = explode(':', $toArg);
switch ($prefix) { switch ($prefix) {
case 'group': case 'group':