refinerycms-core 1.0.4 → 1.0.5
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.
- data/app/views/shared/_no_script.html.erb +2 -2
- data/app/views/shared/admin/_form_actions.html.erb +1 -1
- data/config/locales/cs.yml +2 -2
- data/config/locales/da.yml +2 -2
- data/config/locales/de.yml +2 -2
- data/config/locales/el.yml +2 -2
- data/config/locales/en.yml +2 -2
- data/config/locales/es.yml +2 -2
- data/config/locales/fi.yml +2 -2
- data/config/locales/fr.yml +2 -2
- data/config/locales/it.yml +2 -2
- data/config/locales/jp.yml +2 -2
- data/config/locales/lt.yml +2 -2
- data/config/locales/lv.yml +2 -2
- data/config/locales/nb.yml +2 -2
- data/config/locales/nl.yml +2 -2
- data/config/locales/pl.yml +2 -2
- data/config/locales/pt-BR.yml +2 -2
- data/config/locales/rs.yml +2 -2
- data/config/locales/sk.yml +2 -2
- data/config/locales/sl.yml +2 -2
- data/config/locales/sv.yml +2 -2
- data/config/locales/vi.yml +2 -2
- data/config/locales/zh-CN.yml +2 -2
- data/config/locales/zh-TW.yml +2 -2
- data/lib/gemspec.rb +2 -2
- data/public/javascripts/jquery-ui-custom-min.js +125 -124
- data/public/javascripts/refinery/admin.js +11 -26
- data/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +6 -0
- data/refinerycms-core.gemspec +6 -7
- metadata +18 -20
- data/lib/refinery/link_renderer.rb +0 -55
@@ -569,52 +569,37 @@ var link_dialog = {
|
|
569
569
|
},
|
570
570
|
|
571
571
|
web_tab: function(){
|
572
|
-
link_tester.validate_url_textbox("#web_address_text",
|
572
|
+
link_tester.validate_url_textbox("#web_address_text", function(){});
|
573
|
+
|
574
|
+
$('#web_address_text, #web_address_target_blank').change(function(){
|
573
575
|
link_dialog.update_parent( $('#web_address_text').val(),
|
574
576
|
$('#web_address_text').val(),
|
575
|
-
|
576
|
-
|
577
|
-
});
|
578
|
-
|
579
|
-
$('#web_address_target_blank').click(function(){
|
580
|
-
parent.document.getElementById('wym_target').value = this.checked ? "_blank" : "";
|
577
|
+
$('#web_address_target_blank').get(0).checked ? "_blank" : ""
|
578
|
+
);
|
581
579
|
});
|
582
580
|
},
|
583
581
|
|
584
582
|
email_tab: function() {
|
583
|
+
link_tester.validate_email_textbox("#email_address_text", function(){});
|
584
|
+
|
585
585
|
$('#email_address_text, #email_default_subject_text, #email_default_body_text').change(function(e){
|
586
586
|
var default_subject = $('#email_default_subject_text').val(),
|
587
587
|
default_body = $('#email_default_body_text').val(),
|
588
588
|
mailto = "mailto:" + $('#email_address_text').val(),
|
589
589
|
modifier = "?",
|
590
|
-
|
591
|
-
|
592
|
-
$('#email_address_test_loader').show();
|
593
|
-
$('#email_address_test_result').hide();
|
594
|
-
$('#email_address_test_result').removeClass('success_icon').removeClass('failure_icon');
|
595
|
-
|
596
|
-
|
597
|
-
link_tester.email(mailto, function (success) {
|
598
|
-
if (success) {
|
599
|
-
icon = 'success_icon';
|
600
|
-
}else{
|
601
|
-
icon = 'failure_icon';
|
602
|
-
}
|
603
|
-
$('#email_address_test_result').addClass(icon).show();
|
604
|
-
$('#email_address_test_loader').hide();
|
605
|
-
});
|
590
|
+
additional = "";
|
606
591
|
|
607
592
|
if(default_subject.length > 0){
|
608
|
-
|
593
|
+
additional += modifier + "subject=" + default_subject;
|
609
594
|
modifier = "&";
|
610
595
|
}
|
611
596
|
|
612
597
|
if(default_body.length > 0){
|
613
|
-
|
598
|
+
additional += modifier + "body=" + default_body;
|
614
599
|
modifier = "&";
|
615
600
|
}
|
616
601
|
|
617
|
-
link_dialog.update_parent(mailto, mailto.replace('mailto:', ''));
|
602
|
+
link_dialog.update_parent(mailto + additional, mailto.replace('mailto:', ''));
|
618
603
|
});
|
619
604
|
},
|
620
605
|
|
@@ -1781,10 +1781,16 @@ WYMeditor.INIT_DIALOG = function(wym, selected, isIframe) {
|
|
1781
1781
|
// focus first textarea or input type text element
|
1782
1782
|
dialog.find('input[type=text], textarea').first().focus();
|
1783
1783
|
|
1784
|
+
// init close_dialog when user clicks on cancel button
|
1784
1785
|
doc.find('body').addClass('wym_iframe_body').find('#cancel_button').add(dialog.find('.close_dialog')).click(function(e){
|
1785
1786
|
wym.close_dialog(e, true);
|
1786
1787
|
});
|
1787
1788
|
|
1789
|
+
// init close_dialog when user clicks on small x icon at the top of dialog
|
1790
|
+
$('.ui-dialog-titlebar .ui-dialog-titlebar-close').click(function(e){
|
1791
|
+
wym.close_dialog(e, true);
|
1792
|
+
});
|
1793
|
+
|
1788
1794
|
//pre-init functions
|
1789
1795
|
if($.isFunction(wym._options.preInitDialog)) {
|
1790
1796
|
wym._options.preInitDialog(wym, window);
|
data/refinerycms-core.gemspec
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = %q{refinerycms-core}
|
6
|
-
s.version = %q{1.0.
|
6
|
+
s.version = %q{1.0.5}
|
7
7
|
s.summary = %q{Core engine for Refinery CMS}
|
8
8
|
s.description = %q{The core of Refinery CMS. This handles the common functionality and is required by most engines}
|
9
|
-
s.date = %q{2011-08-
|
9
|
+
s.date = %q{2011-08-31}
|
10
10
|
s.email = %q{info@refinerycms.com}
|
11
11
|
s.homepage = %q{http://refinerycms.com}
|
12
12
|
s.rubyforge_project = %q{refinerycms}
|
@@ -15,16 +15,16 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.require_paths = %w(lib)
|
16
16
|
s.executables = %w()
|
17
17
|
|
18
|
-
s.add_dependency 'refinerycms-base', '= 1.0.
|
19
|
-
s.add_dependency 'refinerycms-settings', '= 1.0.
|
18
|
+
s.add_dependency 'refinerycms-base', '= 1.0.5'
|
19
|
+
s.add_dependency 'refinerycms-settings', '= 1.0.5'
|
20
20
|
s.add_dependency 'refinerycms-generators', '~> 1.0'
|
21
21
|
s.add_dependency 'acts_as_indexed', '~> 0.7'
|
22
22
|
s.add_dependency 'friendly_id_globalize3', '~> 3.2.1'
|
23
23
|
s.add_dependency 'globalize3', '~> 0.1'
|
24
24
|
s.add_dependency 'awesome_nested_set', '~> 2.0'
|
25
|
-
s.add_dependency 'rails', '~> 3.0.
|
25
|
+
s.add_dependency 'rails', '~> 3.0.10'
|
26
26
|
s.add_dependency 'truncate_html', '~> 0.5'
|
27
|
-
s.add_dependency 'will_paginate', '
|
27
|
+
s.add_dependency 'will_paginate', '~> 3.0.0'
|
28
28
|
|
29
29
|
s.files = [
|
30
30
|
'app',
|
@@ -164,7 +164,6 @@ Gem::Specification.new do |s|
|
|
164
164
|
'lib/refinery/helpers/site_bar_helper.rb',
|
165
165
|
'lib/refinery/helpers/tag_helper.rb',
|
166
166
|
'lib/refinery/helpers/translation_helper.rb',
|
167
|
-
'lib/refinery/link_renderer.rb',
|
168
167
|
'lib/refinery/menu.rb',
|
169
168
|
'lib/refinery/menu_item.rb',
|
170
169
|
'lib/refinery/plugin.rb',
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 5
|
10
|
+
version: 1.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Resolve Digital
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2011-08-
|
22
|
+
date: 2011-08-31 00:00:00 Z
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
25
25
|
name: refinerycms-base
|
@@ -29,12 +29,12 @@ dependencies:
|
|
29
29
|
requirements:
|
30
30
|
- - "="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
hash:
|
32
|
+
hash: 29
|
33
33
|
segments:
|
34
34
|
- 1
|
35
35
|
- 0
|
36
|
-
-
|
37
|
-
version: 1.0.
|
36
|
+
- 5
|
37
|
+
version: 1.0.5
|
38
38
|
type: :runtime
|
39
39
|
version_requirements: *id001
|
40
40
|
- !ruby/object:Gem::Dependency
|
@@ -45,12 +45,12 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
hash:
|
48
|
+
hash: 29
|
49
49
|
segments:
|
50
50
|
- 1
|
51
51
|
- 0
|
52
|
-
-
|
53
|
-
version: 1.0.
|
52
|
+
- 5
|
53
|
+
version: 1.0.5
|
54
54
|
type: :runtime
|
55
55
|
version_requirements: *id002
|
56
56
|
- !ruby/object:Gem::Dependency
|
@@ -137,12 +137,12 @@ dependencies:
|
|
137
137
|
requirements:
|
138
138
|
- - ~>
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
hash:
|
140
|
+
hash: 19
|
141
141
|
segments:
|
142
142
|
- 3
|
143
143
|
- 0
|
144
|
-
-
|
145
|
-
version: 3.0.
|
144
|
+
- 10
|
145
|
+
version: 3.0.10
|
146
146
|
type: :runtime
|
147
147
|
version_requirements: *id008
|
148
148
|
- !ruby/object:Gem::Dependency
|
@@ -166,15 +166,14 @@ dependencies:
|
|
166
166
|
requirement: &id010 !ruby/object:Gem::Requirement
|
167
167
|
none: false
|
168
168
|
requirements:
|
169
|
-
- -
|
169
|
+
- - ~>
|
170
170
|
- !ruby/object:Gem::Version
|
171
|
-
hash:
|
171
|
+
hash: 7
|
172
172
|
segments:
|
173
173
|
- 3
|
174
174
|
- 0
|
175
|
-
-
|
176
|
-
|
177
|
-
version: 3.0.pre2
|
175
|
+
- 0
|
176
|
+
version: 3.0.0
|
178
177
|
type: :runtime
|
179
178
|
version_requirements: *id010
|
180
179
|
description: The core of Refinery CMS. This handles the common functionality and is required by most engines
|
@@ -292,7 +291,6 @@ files:
|
|
292
291
|
- lib/refinery/helpers/site_bar_helper.rb
|
293
292
|
- lib/refinery/helpers/tag_helper.rb
|
294
293
|
- lib/refinery/helpers/translation_helper.rb
|
295
|
-
- lib/refinery/link_renderer.rb
|
296
294
|
- lib/refinery/menu.rb
|
297
295
|
- lib/refinery/menu_item.rb
|
298
296
|
- lib/refinery/plugin.rb
|
@@ -559,7 +557,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
559
557
|
requirements: []
|
560
558
|
|
561
559
|
rubyforge_project: refinerycms
|
562
|
-
rubygems_version: 1.8.
|
560
|
+
rubygems_version: 1.8.10
|
563
561
|
signing_key:
|
564
562
|
specification_version: 3
|
565
563
|
summary: Core engine for Refinery CMS
|
@@ -1,55 +0,0 @@
|
|
1
|
-
class Refinery::LinkRenderer < WillPaginate::ViewHelpers::LinkRenderer
|
2
|
-
|
3
|
-
# TODO: Rewrite for WillPaginate 3 API
|
4
|
-
|
5
|
-
=begin
|
6
|
-
|
7
|
-
attr_accessor :url
|
8
|
-
|
9
|
-
def url_for(page)
|
10
|
-
# extract any url parameter and store it for subsequent requests but delete it
|
11
|
-
# this is so that we don't end up with it being an attribute of the resulting HTML.
|
12
|
-
@url ||= @options.delete(:url) || {}
|
13
|
-
page_one = page == 1
|
14
|
-
@url_params = {}
|
15
|
-
# page links should preserve GET parameters
|
16
|
-
stringified_merge @url_params, @template.params if @template.request.get?
|
17
|
-
stringified_merge @url_params, @options[:params] if @options[:params]
|
18
|
-
|
19
|
-
if complex = param_name.index(/[^\w-]/)
|
20
|
-
page_param = parse_query_parameters("#{param_name}=#{page}")
|
21
|
-
|
22
|
-
stringified_merge @url_params, page_param
|
23
|
-
else
|
24
|
-
@url_params[param_name] = page_one ? 1 : 2
|
25
|
-
end
|
26
|
-
|
27
|
-
url = @template.url_for(@url_params.merge!(@url).to_options)
|
28
|
-
return url if page_one
|
29
|
-
|
30
|
-
if complex
|
31
|
-
@url_string = url.sub(%r!((?:\?|&)#{CGI.escape param_name}=)#{page}!, '\1@')
|
32
|
-
return url
|
33
|
-
else
|
34
|
-
@url_string = url
|
35
|
-
@url_params[param_name] = 3
|
36
|
-
@template.url_for(@url_params).split(//).each_with_index do |char, i|
|
37
|
-
if char == '3' and url[i, 1] == '2'
|
38
|
-
@url_string[i] = '@'
|
39
|
-
break
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
# finally!
|
44
|
-
@url_string.sub '@', page.to_s
|
45
|
-
end
|
46
|
-
|
47
|
-
private
|
48
|
-
|
49
|
-
def param_name
|
50
|
-
@options[:param_name].to_s
|
51
|
-
end
|
52
|
-
|
53
|
-
=end
|
54
|
-
|
55
|
-
end
|