xforum 0.0.382 → 0.0.383

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: 85db147e536d3413c7b6a659991e2f2ebbb92b4d
4
- data.tar.gz: ac992da35efc2433dacbad34f8f53033a97fa477
3
+ metadata.gz: c331811380bf175a0180993339aa7d0337a0c525
4
+ data.tar.gz: 257d15c5d9d18b14bafbb174fc5b847f910c57c4
5
5
  SHA512:
6
- metadata.gz: 646e1c487c38c539d78e87d64be79e0702f59e2f0df61bdca9dbe67b7c334ae6c9f32bae0ae383dd7591af441f8cdfdfc0a5368f7c011f4f78c1af6aea44861b
7
- data.tar.gz: 0cd1731d3621beaeeaec0605b5ee87b6e9d7ac02d9a992a40df8165f72dbeca4f8942055f63b810ddf9d477430a8f592bab5d3f0a67c08a298c9459f018094c6
6
+ metadata.gz: 589eda227511bc74a7d0d6b940ab502055f9a621963b3d57380f3ee6c507466422217f4206982324f6d9f067895e54d110d180784cece460b87641b9aaef25ef
7
+ data.tar.gz: 6053414004b85780e05a30d8713450036bf22e22e64efb8d01e5896c6a9c320ac450dd19a581e4f003c5b7458bb8362ada7dd8f696216fe82cd2d83065db3ca4
@@ -246,6 +246,7 @@ doAction = ->
246
246
  document.getElementById('forum-actions').selectedIndex=0
247
247
  setAdminDisplay()
248
248
  $("forum-email-body").val('')
249
+ $('#forum-comment-span')[0].dataset.translating = false
249
250
  $.post('xforum/forum_ajax',request)
250
251
  doAdminStuff()
251
252
  hideActionViews()
@@ -14,7 +14,7 @@ makeThisTheTranslations=(which)->
14
14
  $('#forum-comment-translation').val(which.value)
15
15
 
16
16
  window.getTranslationLanguage=->
17
- $('#forum-translation-language').val()
17
+ getSelectValues({id:'forum-translation-language', ref:true})
18
18
 
19
19
  window.setTranslationState = ->
20
20
  comment_span = document.getElementById('forum-comment-span')
@@ -155,6 +155,8 @@ setTheState = (span, new_state)->
155
155
  window.cancelComment = ->
156
156
  $('#forum-comment').val('')
157
157
  $('#comment-maybe').remove()
158
+ $('#forum-comment-span')[0].dataset.translating = false
159
+ hideMe({id:'forum-translation-span'})
158
160
  hideMe({id: 'forum-comment-span'})
159
161
 
160
162
  checkPost = ->
@@ -175,7 +175,7 @@ module Xforum
175
175
  else
176
176
  owner_name=Xforum.user_class.where(id:user.id).pluck(:forum_post_name)[0]
177
177
  forum_id= Forum.create(parent:params[:parent],topic_id:topic_id,tag:params[:tag], has_photo:has_photo, user_id:user.id,content:params[:comment],restricted:restricted,owner_name:owner_name).id
178
- Translation.create(forum_id:forum_id,user_id:user.id,topic_id:topic_id, language_id:Language.get_language_locale(params), content:params[:translation],suggestion:false,state:'new')
178
+ Translation.create(forum_id:forum_id,user_id:user.id,topic_id:topic_id, language_id:Language.get_language_locale(params), content:params[:comment],suggestion:false,state:'new')
179
179
  end
180
180
  Translation.add_one(params,topic_id,user.id,forum_id) if params[:translating] && user.forum_translating_privileges?
181
181
  PeopleList.make_invitation(params,forum_id,user) if params[:restricted]=='true'
@@ -85,7 +85,7 @@ module Xforum
85
85
  id.nil? ? Language.first.id : id
86
86
  end
87
87
  def self.get_me(params)
88
- return if params[:langeuage].nil?
88
+ return if params[:language].nil?
89
89
  params[:language] = params[:language][0] if params[:language].is_a?(Array)
90
90
  code=params[:language].split('-')[0].strip
91
91
  Language.where(code:code).pluck(:id)[0]
@@ -1,3 +1,3 @@
1
1
  module Xforum
2
- VERSION = '0.0.382'
2
+ VERSION = '0.0.383'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xforum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.382
4
+ version: 0.0.383
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert D Blanton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-06 00:00:00.000000000 Z
11
+ date: 2014-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -296,12 +296,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
296
296
  requirements:
297
297
  - - ">="
298
298
  - !ruby/object:Gem::Version
299
- version: '2.0'
299
+ version: 2.1.1
300
300
  required_rubygems_version: !ruby/object:Gem::Requirement
301
301
  requirements:
302
302
  - - ">="
303
303
  - !ruby/object:Gem::Version
304
- version: '2.0'
304
+ version: 2.1.1
305
305
  requirements: []
306
306
  rubyforge_project:
307
307
  rubygems_version: 2.2.2