friends_ajax_core 0.0.51 → 0.0.52
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ajax_callbacks_core/helpers.js.erb +13 -13
- data/app/assets/javascripts/ajax_ui_core/datepicker.js.erb +1 -0
- data/app/assets/javascripts/ajax_ui_core/overlay.js.erb +1 -1
- data/app/controllers/ajax_controller.rb +68 -0
- data/app/views/layouts/_overlay_js.html.erb +1 -1
- data/config/initializers/ajax_core_init.rb +1 -0
- metadata +3 -2
- data/app/controllers/friends_ajax_controller.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9520634beee7c3638d27836e13a96da16e22d991
|
4
|
+
data.tar.gz: ede3386ee8fe9d19f66e1ed3b861189f2d993bf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d5f2af19a236cdf4c44f1aa3dfba2aed2f506ba963984d08be5d785adb76eab53c0c6af48d6604e8b56a583dcb81c103f4a1d6da15d56d3902d08d0b34bb346
|
7
|
+
data.tar.gz: b07b79409d532144ec6a8c5aacda010cdb1832ee19176867188dd47e88a4f3e1da6e3e01ca12f6d38194e5ebf11dab38e07b4c75b94ffedeaf713eae199b2260
|
@@ -138,25 +138,25 @@ flashFadeOut = function(){
|
|
138
138
|
}
|
139
139
|
|
140
140
|
loadAjaxFlashNotice = function(){
|
141
|
-
$.getJSON(
|
141
|
+
$.getJSON('/ajax/json_flash_data', function(data){
|
142
142
|
$(data).each(function(i) {
|
143
143
|
flashNoticeDisplay($(this)[1], $(this)[0]);
|
144
144
|
});
|
145
145
|
});
|
146
146
|
}
|
147
147
|
|
148
|
-
|
149
|
-
jsFullUrl = function(url){
|
150
|
-
proto = '
|
151
|
-
host = '
|
152
|
-
port = '
|
153
|
-
|
154
|
-
target_url = proto +
|
155
|
-
if(port != ''){
|
156
|
-
target_url = target_url + ":"+port
|
157
|
-
}
|
158
|
-
return target_url + url
|
159
|
-
}
|
148
|
+
//// Adds full host name etc. to URL
|
149
|
+
//jsFullUrl = function(url){
|
150
|
+
// proto = '<%#= request.protocol %>'
|
151
|
+
// host = '<%#= request.host %>'
|
152
|
+
// port = '<%#= request.port %>'
|
153
|
+
//
|
154
|
+
// target_url = proto + host
|
155
|
+
// if(port != ''){
|
156
|
+
// target_url = target_url + ":"+port
|
157
|
+
// }
|
158
|
+
// return target_url + url
|
159
|
+
//}
|
160
160
|
|
161
161
|
// JavaScript Makeover of Rails 2.3 'remote_function' helper
|
162
162
|
remote_function = function(path_url, div, load_message, submit, load_text){
|
@@ -1,6 +1,7 @@
|
|
1
1
|
// Intialisierungen der DatePicker UI Elemente
|
2
2
|
|
3
3
|
// Deutsche Sprache Laden
|
4
|
+
//= require jquery.ui.datepicker
|
4
5
|
//= require jquery.ui.datepicker-de
|
5
6
|
var MONTHPICKER_MONTH_NAMES = ['Jan.', 'Feb.', 'März', 'April', 'Mai', 'Juni', 'Juli', 'Aug.', 'Sep.', 'Okt.', 'Nov.', 'Dez.']
|
6
7
|
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
class AjaxController < ApplicationController
|
3
|
+
|
4
|
+
ApplicationController._process_action_callbacks.select {|f| f.kind == :before }.each do |filter|
|
5
|
+
skip_before_filter filter
|
6
|
+
end
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
#== Neue AJAX Funkionen
|
11
|
+
# Alles was oben drüber steht, sollte mal aussortiert werden (17.04.2013, 13:09, Florian Eck)
|
12
|
+
|
13
|
+
# flash[:notice/error] Laden
|
14
|
+
def json_flash_data
|
15
|
+
render :text => flash.to_json
|
16
|
+
end
|
17
|
+
|
18
|
+
# AutoComplete Data laden
|
19
|
+
def auto_complete
|
20
|
+
data = []
|
21
|
+
if params[:source]
|
22
|
+
case params[:source]
|
23
|
+
when "ausbildung_studium"
|
24
|
+
data = CustomerJobData.find(:all, :group => :ausbildung_studium, :order => :ausbildung_studium).map {|d| d.ausbildung_studium.limit(85) rescue nil }.compact
|
25
|
+
when "cashflow_in"
|
26
|
+
data = CashflowIn::LABELS
|
27
|
+
when "cashflow_out"
|
28
|
+
data = CashflowOut.find(:all, :group => :name, :order => :name).map {|c| c.name}
|
29
|
+
when "job_name"
|
30
|
+
data = ConfigJobName.find(:all).map {|j| j.name.limit(85)}
|
31
|
+
when "job_branche"
|
32
|
+
data = CustomerJobData.find(:all, :group => :job_branche, :order => :job_branche).map {|d| d.job_branche.limit(85) rescue nil }.compact
|
33
|
+
when "nation"
|
34
|
+
data = PersonalData.nation_options
|
35
|
+
when "text_group"
|
36
|
+
data = StaticText.groups_list
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
render :json => data.compact
|
41
|
+
end
|
42
|
+
|
43
|
+
def save_slidedown_box
|
44
|
+
session[:slidedown_boxes_open] = [] if session[:slidedown_boxes_open].nil?
|
45
|
+
|
46
|
+
if session[:slidedown_boxes_open].include?(params[:id])
|
47
|
+
session[:slidedown_boxes_open].delete(params[:id])
|
48
|
+
else
|
49
|
+
session[:slidedown_boxes_open] << params[:id]
|
50
|
+
end
|
51
|
+
|
52
|
+
render :text => "", :content_type => "text/html", :status => 200
|
53
|
+
end
|
54
|
+
|
55
|
+
def save_window_width
|
56
|
+
session[:window_width] = params[:width]
|
57
|
+
|
58
|
+
render :text => "", :content_type => "text/html", :status => 200
|
59
|
+
end
|
60
|
+
|
61
|
+
def render_user_navi
|
62
|
+
load_current_user_data(true)
|
63
|
+
current_user.clear_view_cache("application_navi")
|
64
|
+
render :partial => '/layouts/application_navi'
|
65
|
+
end
|
66
|
+
|
67
|
+
|
68
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
SC_START_DATE = Date.new(2009)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: friends_ajax_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.52
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Eck
|
@@ -103,7 +103,7 @@ files:
|
|
103
103
|
- app/assets/javascripts/ajax_ui_core/slide-down.js
|
104
104
|
- app/assets/javascripts/friends_ajax_core.js.erb
|
105
105
|
- app/assets/javascripts/init_ajax_core.js.erb
|
106
|
-
- app/controllers/
|
106
|
+
- app/controllers/ajax_controller.rb
|
107
107
|
- app/helpers/friends_ajax_helper.rb
|
108
108
|
- app/views/layouts/_ajax_overlay.html.erb
|
109
109
|
- app/views/layouts/_info_overlay.html.erb
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- app/views/layouts/_overlay_js.html.erb
|
113
113
|
- app/views/layouts/ajax_overlay.html.erb
|
114
114
|
- app/views/layouts/info_overlay.html.erb
|
115
|
+
- config/initializers/ajax_core_init.rb
|
115
116
|
- config/routes.rb
|
116
117
|
- lib/friends_ajax_core.rb
|
117
118
|
- lib/friends_ajax_core/version.rb
|