publinator 0.0.27 → 0.0.28
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/assets/javascripts/publinator/manage.js +11 -0
- data/app/assets/stylesheets/publinator/manage.css.scss +8 -0
- data/app/helpers/publinator/application_helper.rb +4 -0
- data/app/helpers/publinator/manage/publishable_types_helper.rb +4 -1
- data/app/views/publinator/manage/index.html.erb +1 -1
- data/lib/publinator/version.rb +1 -1
- data/lib/publinator.rb +1 -1
- metadata +3 -3
@@ -16,6 +16,11 @@
|
|
16
16
|
//= require_directory "./manage"
|
17
17
|
//= require_self
|
18
18
|
|
19
|
+
function moveObject(selector, from, to) {
|
20
|
+
$(selector).appendTo($(to));
|
21
|
+
$(selector).find($(from)).remove();
|
22
|
+
}
|
23
|
+
|
19
24
|
$(function() {
|
20
25
|
$(".sortable_list").sortable({
|
21
26
|
update: function(){
|
@@ -29,5 +34,11 @@ $(function() {
|
|
29
34
|
}
|
30
35
|
});
|
31
36
|
$(".sortable_list").disableSelection();
|
37
|
+
|
38
|
+
|
39
|
+
$(".toggle_details").on("click", function(event) {
|
40
|
+
event.preventDefault();
|
41
|
+
$(event.currentTarget).siblings('.object_details').toggle();
|
42
|
+
});
|
32
43
|
});
|
33
44
|
|
@@ -101,5 +101,9 @@ module Publinator
|
|
101
101
|
stp_txt = truncate(strip_tags(m(txt)), :length => 200)
|
102
102
|
stp_txt.gsub("'", "'").gsub("&", "&").gsub("®", "").gsub("™", "") unless stp_txt.nil?
|
103
103
|
end
|
104
|
+
|
105
|
+
def toggle_details(lnk_text, obj_link)
|
106
|
+
link_to lnk_text, obj_link, :class => 'toggle_details'
|
107
|
+
end
|
104
108
|
end
|
105
109
|
end
|
data/lib/publinator/version.rb
CHANGED
data/lib/publinator.rb
CHANGED
@@ -34,7 +34,7 @@ module Publinator
|
|
34
34
|
attr_accessor :default
|
35
35
|
|
36
36
|
scope :non_index, joins(:publication).where("publication.slug != 'index'")
|
37
|
-
delegate :site, :section, :slug, :to => :publication
|
37
|
+
delegate :site, :position, :section, :slug, :to => :publication
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: publinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.28
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -389,7 +389,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
389
389
|
version: '0'
|
390
390
|
segments:
|
391
391
|
- 0
|
392
|
-
hash:
|
392
|
+
hash: 2012015403603158414
|
393
393
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
394
394
|
none: false
|
395
395
|
requirements:
|
@@ -398,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
398
398
|
version: '0'
|
399
399
|
segments:
|
400
400
|
- 0
|
401
|
-
hash:
|
401
|
+
hash: 2012015403603158414
|
402
402
|
requirements: []
|
403
403
|
rubyforge_project:
|
404
404
|
rubygems_version: 1.8.24
|