xforum 0.0.371 → 0.0.372

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7f8696abf1832dd68ece61dab5c149e899dca8e
4
- data.tar.gz: ebaeab5b0d3649156abece3bf95558f34df6f583
3
+ metadata.gz: 7d76a2c0955075babe121fdcbc5c4b10a0776a46
4
+ data.tar.gz: 0ad69779618221c41f6253d82376dac01e1a1dd6
5
5
  SHA512:
6
- metadata.gz: 3a51bc4728c2b347fea0718a506b96026d6ca49f81d410cc96cbfe8f9a2c677f64134146d770465c73115e1344a5dd6ca90cefbaa56d6ed1013b4eb5d0627e63
7
- data.tar.gz: cb851fc8c4528c777c33f86ccfe82e83d40e1111be2a1401658f9d028471b2971e181fe82bf6891bba5ee39d9f8a77ebaac358b3b78152fb9289959fe336dd2d
6
+ metadata.gz: b330908427c98178c107d67e3909a4ae233c9f64e52fbe501bb8f90f237e78a2de35e35342626447fa40a170c32b41961ddc0ab0df203157e3f7afb09279b896
7
+ data.tar.gz: 69ca03ac90092844a24151d8470e7f3ed8cc9f39c3b929740720464c81ba5644196e752dc375ddb71ad842e0e9177f9a1096ea005f53eb5dc790dc9b38849b0c
@@ -38,6 +38,8 @@ jQuery ->
38
38
  doRestrictTopic(event.target)
39
39
  $('#user_email').dblclick ->
40
40
  addEmail(event.target)
41
+ $('#users').dblclick ->
42
+ addEmail(event.target)
41
43
  #todo add reason selection for rejecion (forum and user privilages)
42
44
 
43
45
  clearEmail=->
@@ -91,8 +91,11 @@ module Xforum
91
91
  end
92
92
 
93
93
  def self.get_forum_users(params, user)
94
- user.forum_admin? ? alist = Xforum.user_class.all.pluck(:forum_post_name, :id) : alist =[]
94
+ user.forum_admin? ? alist = Xforum.user_class.all.order(:forum_post_name).pluck(:forum_post_name, :id) : alist =[]
95
95
  alist.unshift([I18n.t('xForum.select_none'), 'select none', 0])
96
+ blist=alist.clone #so you can do list.each and delete items
97
+ blist.each { |record| alist.delete(record) if record[0].nil? || record[0]=='' }
98
+ alist
96
99
  {list_data: ForumAssist.named_array(alist, [:value, :item]), name: 'forum-user-tag'}
97
100
  end
98
101
 
@@ -11,21 +11,20 @@
11
11
  <label> <%= t('xForum.User_Email')%> </label> <br><br>
12
12
  <button class="cool-selector" name="forum-user-email-show"><input class= 'silver-selector' type='button' id= 'forum-admin-button' name='forum-user-email-choose' value="<%= t('xForum.select_user')%>"></button>
13
13
  <span id='forum-user-email-span'><%=select_tag(:user_email,options_for_select(@user_email), multiple:true, size:6, name:'forum-user-email', class:'forum-select')%></span>
14
-
14
+ <br>
15
15
  <label> <%= t('xForum.User_Name') %> </label> <br><br>
16
16
  <button class="cool-selector" name="forum-user-tag-show"><input class= 'silver-selector' type='button' id= 'forum-admin-button' name='forum-user-tag-choose' value="<%= t('xForum.select_user')%>"></button>
17
17
  <span id='forum-user-tag-span'><%=select_tag(:users,options_for_select(@user_tags ), multiple:true, name:'forum-user-tag',size:6, class:'forum-select')%></span>
18
18
  </span>
19
19
  <span class="col-md-4">
20
20
  <span id="forum-distribution-span">
21
- <label> <%= t('xForum.Distribuiton_List_Name')%> </label> <br><br>
21
+ <label> <%= t('xForum.Distribuiton_List_Name')%> </label> <br>
22
22
  <%=select_tag(:forum,options_for_select(@distribution_lists), id:'forum-distribution-lists', class:'forum-select')%>
23
23
  <label><%=t('xForum.New')%></label> <input type="text" id='forum-new-distribution-list' class="admin-edit-field" >
24
24
  <label><%=t('xFrorum.User_Email')%></label>
25
- <%=text_area_tag(:forum_selected_emails )%>
26
- </span>
25
+ <textarea id="forum_selected_emails" name="forum_selected_emails" readonly></textarea> </span>
27
26
  <span id="forum-moderator-add-span">
28
- <label> <%= t('xForum.Add_Topic_Monitor')%> </label> <br><br>
27
+ <label> <%= t('xForum.Add_Topic_Monitor')%> </label> <br>
29
28
  <%= select_tag(:forum, options_for_select(@categories),id:'forum-category-monitor', class: 'forum-select') %>
30
29
  <%= select_tag(:forum, options_for_select(@topics), id:'forum-topic-monitor', class: 'forum-select') %>
31
30
  </span>
@@ -1,3 +1,3 @@
1
1
  module Xforum
2
- VERSION = '0.0.371'
2
+ VERSION = '0.0.372'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xforum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.371
4
+ version: 0.0.372
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert D Blanton