mtoros-mega_menus 0.7.7 → 0.7.8

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/Rakefile CHANGED
@@ -4,14 +4,14 @@ require 'rake'
4
4
  begin
5
5
  require 'echoe'
6
6
 
7
- Echoe.new('mega_menus', '0.7.7') do |p|
7
+ Echoe.new('mega_menus', '0.7.8') do |p|
8
8
  p.summary = "Treeview menu Gem for Rails"
9
9
  p.description = "Adds a model, controller to perform the tasks in order to have a treeview menu. To use this gem simply install it and write script/generate menu name_of_the_menu"
10
10
  p.author = ['Marko Toros']
11
11
  p.email = "mtoros@gmail.com"
12
12
  p.url = ""
13
13
  end
14
- rescue LoadError => boom
14
+ rescue LoadError => boom8
15
15
  puts "You are missing a dependency required for meta-operations on this gem."
16
16
  puts "#{boom.to_s.capitalize}."
17
17
  end
data/mega_menus.gemspec CHANGED
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{mega_menus}
3
- s.version = "0.7.7"
3
+ s.version = "0.7.8"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Marko Toros"]
7
- s.date = %q{2008-11-17}
7
+ s.date = %q{2008-11-21}
8
8
  s.description = %q{Adds a model, controller to perform the tasks in order to have a treeview menu. To use this gem simply install it and write script/generate menu name_of_the_menu}
9
9
  s.email = %q{mtoros@gmail.com}
10
10
  s.extra_rdoc_files = ["README.rdoc", "lib/mega_menus.rb", "lib/mega_menus/editor.rb", "lib/mega_menus/view_helpers.rb"]
@@ -65,11 +65,11 @@ module <%= "#{file_name.capitalize}Helper" %>
65
65
  #make the selected view appear nicer
66
66
  if(m.id==menu_id.to_i)
67
67
  concat( "<li id=\"li_menu_#{m.id}\" class=\"li_menu_class_selected\">")
68
- concat( "<a class=\"selected_menu\", id =\"menu_link_#{m.id}\" href=\"#{m.link}?menu_id=#{m.id}\"> #{m.title} </a>")
68
+ concat( "<a class=\"selected_menu\" id =\"menu_link_#{m.id}\" href=\"#{m.link}?menu_id=#{m.id}\"> #{m.title} </a>")
69
69
  session[:menu_id]=menu_id
70
70
  else
71
71
  concat( "<li id=\"li_menu_#{m.id}\" class=\"li_menu_class\">")
72
- concat( "<a class=\"menu_link\", id =\"menu_link_#{m.id}\" href=\"#{m.link}?menu_id=#{m.id}\"> #{m.title} </a>")
72
+ concat( "<a class=\"menu_link\" id =\"menu_link_#{m.id}\" href=\"#{m.link}?menu_id=#{m.id}\"> #{m.title} </a>")
73
73
  end
74
74
  if(admin_condition)
75
75
  #remove the comment on the following line depending on the view you want to have
@@ -118,7 +118,7 @@ module <%= "#{file_name.capitalize}Helper" %>
118
118
  pmd=admin_depth.first
119
119
  elsif(firstm==TRUE)
120
120
  concat( "<ul id=\"ul_menu_#{admin_depth.first}\" class=\"ul_menu_depth_#{admin_depth.first} ul_menu\">")
121
- concat( "</ul>")
121
+ pmd=admin_depth.first
122
122
  end
123
123
  pmd.downto(admin_depth.first) {concat( "</ul>")}
124
124
 
@@ -128,10 +128,10 @@ module <%= "#{file_name.capitalize}Helper" %>
128
128
  def add_menu_form(menu_model, menu_controller, menu_id)
129
129
  form_remote_tag( :url => {:controller=>menu_controller, :action=> 'add_menu'}, :html => {:id => "add_menu_form_#{menu_id}", :class => "add_menu_form", :style=>"display: none"}) do
130
130
  concat( "Title:" )
131
- concat( text_field_tag( "title"))
131
+ concat( text_field_tag( "title", "", :id=>"a_tft_title_#{menu_id}"))
132
132
  concat( "Link:")
133
- concat( text_field_tag("link"))
134
- concat( hidden_field_tag(:menu_id, menu_id))
133
+ concat( text_field_tag("link", "",:id=>"a_tft_link_#{menu_id}"))
134
+ concat( hidden_field_tag(:menu_id, menu_id, :id=>"a_tft_menu_id_#{menu_id}"))
135
135
  #content_tag :button, "Submit", {:type=>"submit", :class=>"button-submit"}
136
136
  concat( submit_tag( "Add", :class => "add_button"))
137
137
  end
@@ -142,12 +142,12 @@ module <%= "#{file_name.capitalize}Helper" %>
142
142
  def edit_menu_form(menu_model, menu_controller,m)
143
143
  form_remote_tag( :url => {:controller=>menu_controller, :action=> 'edit_menu'}, :html => {:id => "edit_menu_form_#{m.id}",:class => "edit_menu_form", :style=>"display: none"}) do
144
144
  concat( "Title:")
145
- concat( text_field_tag( "title", m.title))
145
+ concat( text_field_tag( "title", m.title, :id=>"e_tft_title_#{m.id}" ))
146
146
  concat( "Link:")
147
- concat( text_field_tag( "link", m.link))
147
+ concat( text_field_tag( "link", m.link,:id=>"e_tft_link_#{m.id}"))
148
148
  concat( "Parent:")
149
- concat( text_field_tag("parent_id", m.parent_id))
150
- concat( hidden_field_tag( :menu_id, m.id))
149
+ concat( text_field_tag("parent_id", m.parent_id, :id=>"e_tft_parent_id_#{m.id}"))
150
+ concat( hidden_field_tag( :menu_id, m.id,:id=>"e_tft_menud_id_#{m.id}"))
151
151
  #concat content_tag :button, "Submit", {:type=>"submit", :class=>"button-submit"}
152
152
  concat( submit_tag( "Edit", :class => "edit__button"))
153
153
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mtoros-mega_menus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marko Toros
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-17 00:00:00 -08:00
12
+ date: 2008-11-21 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency