muck-engine 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/helpers/muck_engine_helper.rb +2 -3
- data/muck-engine.gemspec +2 -2
- data/public/javascripts/muck.js +1 -0
- data/test/rails_root/public/javascripts/muck.js +1 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.17
|
@@ -71,9 +71,8 @@ module MuckEngineHelper
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def locale_link(name, locale)
|
74
|
-
link_to name, request.protocol + locale + '.' + request.domain + request.request_uri
|
74
|
+
#link_to name, request.protocol + locale + '.' + request.domain + request.request_uri
|
75
|
+
link_to name, request.url.gsub(request.protocol, "#{request.protocol}#{locale}.")
|
75
76
|
end
|
76
|
-
|
77
77
|
|
78
|
-
|
79
78
|
end
|
data/muck-engine.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{muck-engine}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.17"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Justin Ball"]
|
9
|
-
s.date = %q{2009-07-
|
9
|
+
s.date = %q{2009-07-09}
|
10
10
|
s.description = %q{The base engine for the muck system. Contains common tables, custom for, css and javascript.}
|
11
11
|
s.email = %q{justinball@gmail.com}
|
12
12
|
s.extra_rdoc_files = [
|
data/public/javascripts/muck.js
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
jQuery(document).ajaxSend(function(event, request, settings) {
|
4
4
|
if (typeof(AUTH_TOKEN) == "undefined") return;
|
5
|
+
if (settings.type == "GET") return; // for details see: http://www.justinball.com/2009/07/08/jquery-ajax-get-in-firefox-post-in-internet-explorer/
|
5
6
|
settings.data = settings.data || "";
|
6
7
|
settings.data += (settings.data ? "&" : "") + "authenticity_token=" + encodeURIComponent(AUTH_TOKEN);
|
7
8
|
});
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
jQuery(document).ajaxSend(function(event, request, settings) {
|
4
4
|
if (typeof(AUTH_TOKEN) == "undefined") return;
|
5
|
+
if (settings.type == "GET") return; // for details see: http://www.justinball.com/2009/07/08/jquery-ajax-get-in-firefox-post-in-internet-explorer/
|
5
6
|
settings.data = settings.data || "";
|
6
7
|
settings.data += (settings.data ? "&" : "") + "authenticity_token=" + encodeURIComponent(AUTH_TOKEN);
|
7
8
|
});
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Ball
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-09 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|