hide and disable ToSelector for replies
This commit is contained in:
parent
d197c86a61
commit
09cffc1928
@ -655,6 +655,10 @@ var SN = { // StatusNet
|
||||
var nextStep = function() {
|
||||
// Override...?
|
||||
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...
|
||||
var text = replyForm.find('textarea');
|
||||
|
2
js/util.min.js
vendored
2
js/util.min.js
vendored
File diff suppressed because one or more lines are too long
@ -132,6 +132,10 @@ class ToSelector extends Widget
|
||||
$toArg = $action->trimmed('notice_to');
|
||||
$private = $action->boolean('notice_private');
|
||||
|
||||
if (empty($toArg)) {
|
||||
return;
|
||||
}
|
||||
|
||||
list($prefix, $value) = explode(':', $toArg);
|
||||
switch ($prefix) {
|
||||
case 'group':
|
||||
|
Loading…
Reference in New Issue
Block a user