metric_admin 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,7 +77,7 @@ module MetricAdmin
77
77
  end
78
78
 
79
79
  def evaluate
80
- metric_logic = params["logic"].gsub(":staff", params[:staff_evaluation])
80
+ metric_logic = params["logic"].gsub(":staff", params[:logic_staff])
81
81
  error = {}
82
82
 
83
83
  res = Thread.new{
@@ -141,7 +141,7 @@
141
141
  url: "/admin/metrics/"+metric_id+"/evaluate.js",
142
142
  beforeSend: function(xhr) {xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'))},
143
143
  contentType: "application/json; charset=utf-8",
144
- data: JSON.stringify({logic: editor_contents , logic_staff: $("#metric_resource_type_id").val() }),
144
+ data: JSON.stringify({logic: editor_contents , logic_staff: $("#metric_staff_evaluation").val() }),
145
145
  success: function(data){
146
146
  $('.loaderImage').hide();
147
147
  },
@@ -1,3 +1,3 @@
1
1
  module MetricAdmin
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 11
9
- version: 0.0.11
8
+ - 12
9
+ version: 0.0.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Analytics For Lawyers