mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
Modified group recommend
This commit is contained in:
@@ -28,10 +28,6 @@ $('#click-into-group').click(function() {
|
||||
});
|
||||
|
||||
$('#recommend-submit').click(function() {
|
||||
if (!$.trim($('#recommend-groups').val())) {
|
||||
apply_form_error('recommend-form', '群组名称不能为空。');
|
||||
return false;
|
||||
}
|
||||
if (!$.trim($('#recommend-msg').val())) {
|
||||
apply_form_error('recommend-form', '推荐语不能为空。');
|
||||
return false;
|
||||
|
@@ -6,12 +6,16 @@
|
||||
{{ name }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
到群组
|
||||
到群组:
|
||||
</h3>
|
||||
<label>群组名称:</label><br />
|
||||
<input type="input" name="groups" id="recommend-groups" value="" /><br />
|
||||
<div>
|
||||
{% for group in groups %}
|
||||
<input type="checkbox" name="groups" value="{{ group.id }}" {% if forloop.first and forloop.last %} checked {% endif %}>{{ group.group_name }}<br>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<label>推荐语:</label><br />
|
||||
<textarea name="message" id="recommend-msg"></textarea><br />
|
||||
<textarea name="message" id="recommend-msg">看一看~</textarea><br />
|
||||
<input type="hidden" name="repo_id" value="{{ repo.id }}" />
|
||||
<input type="hidden" name="path" value="{{ path }}" />
|
||||
<input type="hidden" name="attach_type" value="{{ attach_type }}" />
|
||||
|
Reference in New Issue
Block a user