muck-engine 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/README.rdoc +5 -0
  2. data/VERSION +1 -1
  3. data/app/helpers/muck_engine_helper.rb +25 -0
  4. data/lib/action_controller/muck_application.rb +25 -1
  5. data/lib/muck_engine.rb +6 -1
  6. data/lib/muck_engine/tasks.rb +5 -1
  7. data/locales/ar.yml +1 -0
  8. data/locales/bg.yml +1 -0
  9. data/locales/ca.yml +1 -0
  10. data/locales/cs.yml +1 -0
  11. data/locales/da.yml +1 -0
  12. data/locales/de.yml +1 -0
  13. data/locales/el.yml +1 -0
  14. data/locales/en.yml +1 -0
  15. data/locales/es.yml +1 -0
  16. data/locales/et.yml +2 -1
  17. data/locales/fa.yml +1 -0
  18. data/locales/fi.yml +1 -0
  19. data/locales/fr.yml +1 -0
  20. data/locales/gl.yml +1 -0
  21. data/locales/hi.yml +1 -0
  22. data/locales/hr.yml +1 -0
  23. data/locales/hu.yml +1 -0
  24. data/locales/id.yml +1 -0
  25. data/locales/it.yml +1 -0
  26. data/locales/iw.yml +1 -0
  27. data/locales/ja.yml +1 -0
  28. data/locales/ko.yml +1 -0
  29. data/locales/lt.yml +1 -0
  30. data/locales/lv.yml +1 -0
  31. data/locales/mt.yml +1 -0
  32. data/locales/nl.yml +1 -0
  33. data/locales/no.yml +1 -0
  34. data/locales/pl.yml +1 -0
  35. data/locales/pt-PT.yml +1 -0
  36. data/locales/ro.yml +1 -0
  37. data/locales/ru.yml +1 -0
  38. data/locales/sk.yml +1 -0
  39. data/locales/sl.yml +1 -0
  40. data/locales/sq.yml +1 -0
  41. data/locales/sr.yml +1 -0
  42. data/locales/sv.yml +1 -0
  43. data/locales/th.yml +1 -0
  44. data/locales/tl.yml +1 -0
  45. data/locales/tr.yml +1 -0
  46. data/locales/uk.yml +1 -0
  47. data/locales/vi.yml +1 -0
  48. data/locales/zh-CN.yml +1 -0
  49. data/locales/zh-TW.yml +1 -0
  50. data/locales/zh.yml +1 -0
  51. data/muck-engine.gemspec +6 -2
  52. data/public/images/icons/external.png +0 -0
  53. data/public/images/icons/feed.png +0 -0
  54. data/public/images/icons/pending.png +0 -0
  55. data/public/javascripts/jquery/jrails.js +1 -0
  56. metadata +6 -2
@@ -60,6 +60,11 @@ If you build your own layout be sure to include the following script in your lay
60
60
  You can customize your email template by overriding the existing layouts. Simply add email_default.text.html.erb and email_default.text.plain.erb
61
61
  views/layouts. This will build templates for html and plain text emails. For an example of each look at the views/layouts directory in this project.
62
62
 
63
+ == iPhone
64
+ To add detection for the iPhone just add this to the top of your controller:
65
+
66
+ before_filter :adjust_format_for_iphone
67
+
63
68
  == CSS
64
69
 
65
70
  The css provided by the muck engine comes from blueprint:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -1,5 +1,19 @@
1
1
  module MuckEngineHelper
2
2
 
3
+ # Outputs a small bit of javascript that will enable message
4
+ # output to jgrowl or to the given message dom id
5
+ #
6
+ # message_dom_id: The dom id of the element that will hold messages.
7
+ # This element can have display:none by default.
8
+ def jquery_message(message_dom_id)
9
+ if GlobalConfig.growl_enabled
10
+ "jQuery('##{message_dom_id}').html(json.message);"
11
+ "jQuery('##{message_dom_id}').show();"
12
+ else
13
+ "jQuery.jGrowl.info(json.message);"
14
+ end
15
+ end
16
+
3
17
  def custom_form_for(record_or_name_or_array, *args, &proc)
4
18
  options = args.detect { |argument| argument.is_a?(Hash) }
5
19
  if options.nil?
@@ -47,6 +61,17 @@ module MuckEngineHelper
47
61
  end
48
62
  end
49
63
 
64
+ # generates javascript that will hide a link or button
65
+ # when click and then show a different dom object
66
+ def show_hide_on_click(id_to_show, id_to_hide)
67
+ %Q{jQuery(document).ready(function() {
68
+ jQuery('##{id_to_hide}').click(function(){
69
+ jQuery(this).hide();
70
+ jQuery('##{id_to_show}').show();
71
+ });
72
+ });}
73
+ end
74
+
50
75
  # Render a photo for the given object. Note that the object will need a 'photo' method
51
76
  # provided by paperclip.
52
77
  # size is commonly one of:
@@ -8,7 +8,18 @@ module ActionController
8
8
 
9
9
  module InstanceMethods
10
10
  protected
11
-
11
+
12
+ # Detect the iphone. Just call this method in a before filter:
13
+ # before_filter :adjust_format_for_iphone
14
+ def adjust_format_for_iphone
15
+ request.format = :iphone if iphone_user_agent?
16
+ end
17
+
18
+ # Request from an iPhone or iPod touch? (Mobile Safari user agent)
19
+ def iphone_user_agent?
20
+ request.env["HTTP_USER_AGENT"] && request.env["HTTP_USER_AGENT"][/(Mobile\/.+Safari)/]
21
+ end
22
+
12
23
  # **********************************************
13
24
  # Locale methods
14
25
  # I18n methods from:
@@ -111,6 +122,19 @@ module ActionController
111
122
  # **********************************************
112
123
  # Parent methods
113
124
 
125
+ # Builds parameters that can be appended to a url to indicate the object's parent.
126
+ # Note that this method should only be used when absolutely needed. The preferred method is
127
+ # to use polymorhpic_url. For example:
128
+ # polymorphic_url([@parent, feeds])
129
+ # edit_polymorphic_url([@parent, @item])
130
+ def make_parent_params(parent)
131
+ if parent.blank?
132
+ {}
133
+ else
134
+ { :parent_id => parent.id, :parent_type => parent.class.to_s }
135
+ end
136
+ end
137
+
114
138
  # Attempts to create an @parent object using params
115
139
  # or the url.
116
140
  def setup_parent(*ignore)
@@ -4,4 +4,9 @@ ActiveRecord::Base.send :include, ActiveRecord::MuckModel
4
4
  ActionController::Base.send :helper, MuckEngineHelper
5
5
 
6
6
  I18n.load_path += Dir[ File.join(File.dirname(__FILE__), '..', 'locales', '*.{rb,yml}') ]
7
- I18n.load_path += Dir[ File.join(File.dirname(__FILE__), '..', 'rails_i18n', '*.{rb,yml}') ]
7
+ I18n.load_path += Dir[ File.join(File.dirname(__FILE__), '..', 'rails_i18n', '*.{rb,yml}') ]
8
+
9
+ Mime::Type.register "application/rdf+xml", :rdf
10
+ Mime::Type.register "text/xml", :opml
11
+ Mime::Type.register "text/javascript", :pjs
12
+ Mime::Type.register_alias "text/html", :iphone
@@ -26,7 +26,11 @@ class MuckEngine
26
26
  namespace :muck do
27
27
 
28
28
  def muck_gem_paths
29
- muck_gems.collect{|name| muck_gem_path(name)}
29
+ if defined?(muck_gems)
30
+ muck_gems.collect{|name| muck_gem_path(name)}
31
+ else
32
+ puts "Please create a method named 'muck_gems' in the namespace :muck in your rakefile."
33
+ end
30
34
  end
31
35
 
32
36
  def muck_gem_path(gem_name)
@@ -21,6 +21,7 @@ ar:
21
21
  enabled: مكن؟
22
22
  general_info: "معلومات عامة"
23
23
  help: مساعدة
24
+ loading: تحميل...
24
25
  next: "القادم »"
25
26
  no_text: لا
26
27
  previous: «السابق
@@ -21,6 +21,7 @@ bg:
21
21
  enabled: "Е включен?"
22
22
  general_info: "Обща информация"
23
23
  help: Помощ
24
+ loading: "Loading ..."
24
25
  next: "Следваща »"
25
26
  no_text: Не
26
27
  previous: «Назад
@@ -21,6 +21,7 @@ ca:
21
21
  enabled: Activat?
22
22
  general_info: "Informació General"
23
23
  help: Ajuda
24
+ loading: "Carregant ..."
24
25
  next: "Següent »"
25
26
  no_text: "No"
26
27
  previous: «Anterior
@@ -21,6 +21,7 @@ cs:
21
21
  enabled: Povoleno?
22
22
  general_info: "Obecné info"
23
23
  help: Nápověda
24
+ loading: "Loading ..."
24
25
  next: "Další »"
25
26
  no_text: Ne
26
27
  previous: «Předchozí
@@ -21,6 +21,7 @@ da:
21
21
  enabled: Aktiveret?
22
22
  general_info: "General info"
23
23
  help: Hjælp
24
+ loading: "Loading ..."
24
25
  next: "Næste »"
25
26
  no_text: Nej
26
27
  previous: «Forrige
@@ -21,6 +21,7 @@ de:
21
21
  enabled: Aktiviert?
22
22
  general_info: "Allgemeine Infos"
23
23
  help: Hilfe
24
+ loading: "Loading ..."
24
25
  next: "Weiter »"
25
26
  no_text: Nein
26
27
  previous: «Zurück
@@ -21,6 +21,7 @@ el:
21
21
  enabled: Ενεργοποιήθηκε;
22
22
  general_info: "Γενικές πληροφορίες"
23
23
  help: Βοήθεια
24
+ loading: "Loading ..."
24
25
  next: "Επόμενη »"
25
26
  no_text: Δεν
26
27
  previous: «Προηγούμενο
@@ -21,6 +21,7 @@ en:
21
21
  time_ago: "{{time_in_words}} ago"
22
22
  read_more: "read more"
23
23
  deleting: "Deleting..."
24
+ loading: "Loading..."
24
25
  engine:
25
26
  choose_country: "Choose Country"
26
27
  select_country_prompt: "Please select a country"
@@ -21,6 +21,7 @@ es:
21
21
  enabled: Activado?
22
22
  general_info: "Información General"
23
23
  help: Ayuda
24
+ loading: "Cargando ..."
24
25
  next: "Siguiente »"
25
26
  no_text: "No"
26
27
  previous: «Anterior
@@ -3,7 +3,7 @@ et:
3
3
  muck:
4
4
  engine:
5
5
  choose_country: "Vali riik"
6
- choose_language: "Vali Keel"
6
+ choose_language: "Choose Language"
7
7
  choose_state: "Vali riik"
8
8
  missing_parent_error: "Palun täpsustage vanem objekti"
9
9
  select_country_prompt: "Palun vali riik"
@@ -21,6 +21,7 @@ et:
21
21
  enabled: Olemas?
22
22
  general_info: "Üldine info"
23
23
  help: Abi
24
+ loading: "Loading ..."
24
25
  next: "Järgmine »"
25
26
  no_text: Ei
26
27
  previous: «Eelmine
@@ -21,6 +21,7 @@ fa:
21
21
  enabled: "کوکی ها؟"
22
22
  general_info: "اطلاعات عمومی"
23
23
  help: راهنما
24
+ loading: "در حال بارگذاری..."
24
25
  next: "بعدی »"
25
26
  no_text: بدون
26
27
  previous: «قبلی
@@ -21,6 +21,7 @@ fi:
21
21
  enabled: Käytössä?
22
22
  general_info: Yleistä
23
23
  help: Apu
24
+ loading: "Loading ..."
24
25
  next: "Seuraava »"
25
26
  no_text: Ei
26
27
  previous: «Edellinen
@@ -21,6 +21,7 @@ fr:
21
21
  enabled: Activé?
22
22
  general_info: "Infos générales"
23
23
  help: Aider
24
+ loading: "Chargement ..."
24
25
  next: "Suivant »"
25
26
  no_text: Non
26
27
  previous: «Précédent
@@ -21,6 +21,7 @@ gl:
21
21
  enabled: Activado?
22
22
  general_info: "General info"
23
23
  help: Axuda
24
+ loading: "Cargando ..."
24
25
  next: "Next »"
25
26
  no_text: Non
26
27
  previous: «Anterior
@@ -21,6 +21,7 @@ hi:
21
21
  enabled: सक्रिय?
22
22
  general_info: "सामान्य जानकारी"
23
23
  help: मदद
24
+ loading: "लोड हो रहा है ..."
24
25
  next: "अगला »"
25
26
  no_text: नहीं
26
27
  previous: «पिछला
@@ -21,6 +21,7 @@ hr:
21
21
  enabled: Omogućen?
22
22
  general_info: "Opće informacije"
23
23
  help: Pomoć
24
+ loading: "Loading ..."
24
25
  next: "Sljedeća »"
25
26
  no_text: Ne
26
27
  previous: «Prethodna
@@ -21,6 +21,7 @@ hu:
21
21
  enabled: Enabled?
22
22
  general_info: "Általános információk"
23
23
  help: Segítség
24
+ loading: "Loading ..."
24
25
  next: "Következő »"
25
26
  no_text: Nem
26
27
  previous: «Előző
@@ -21,6 +21,7 @@ id:
21
21
  enabled: Diaktifkan?
22
22
  general_info: "General info"
23
23
  help: Membantu
24
+ loading: "Loading ..."
24
25
  next: "Next »"
25
26
  no_text: Tidak
26
27
  previous: «Previous
@@ -21,6 +21,7 @@ it:
21
21
  enabled: Abilitati?
22
22
  general_info: "Info generali"
23
23
  help: Aiuto
24
+ loading: "... Caricamento"
24
25
  next: "Avanti »"
25
26
  no_text: "No"
26
27
  previous: «Previous
@@ -21,6 +21,7 @@ iw:
21
21
  enabled: Enabled?
22
22
  general_info: "מידע כללי"
23
23
  help: עזרה
24
+ loading: "טוען ..."
24
25
  next: "הבא »"
25
26
  no_text: לא
26
27
  previous: «קודם
@@ -21,6 +21,7 @@ ja:
21
21
  enabled: 有効かどうか
22
22
  general_info: 一般的な情報
23
23
  help: ヘルプ
24
+ loading: 読み込んでいます...
24
25
  next: 次のページ»
25
26
  no_text: いいえ
26
27
  previous: «前のページ
@@ -21,6 +21,7 @@ ko:
21
21
  enabled: 사용함?
22
22
  general_info: "일반 정보"
23
23
  help: 도움
24
+ loading: "로드 중입니다 ..."
24
25
  next: 다음»
25
26
  no_text: 아니오
26
27
  previous: «이전
@@ -21,6 +21,7 @@ lt:
21
21
  enabled: Įjungtas?
22
22
  general_info: "Bendra informacija"
23
23
  help: Padėti
24
+ loading: "Kraunasi ..."
24
25
  next: "Sekantis »"
25
26
  no_text: Ne
26
27
  previous: «Ankstesnis
@@ -21,6 +21,7 @@ lv:
21
21
  enabled: Enabled?
22
22
  general_info: "Vispārēja informācija"
23
23
  help: Palīdzība
24
+ loading: "Loading ..."
24
25
  next: "Nākamā »"
25
26
  no_text: Nē
26
27
  previous: «Iepriekšējie
@@ -21,6 +21,7 @@ mt:
21
21
  enabled: Iffaċilitati?
22
22
  general_info: "Info Ġenerali"
23
23
  help: Għajnuna
24
+ loading: "Loading ..."
24
25
  next: "Next »"
25
26
  no_text: Le
26
27
  previous: «Previous
@@ -21,6 +21,7 @@ nl:
21
21
  enabled: Ingeschakeld?
22
22
  general_info: "Algemene info"
23
23
  help: Help
24
+ loading: "... Laden"
24
25
  next: "Volgende »"
25
26
  no_text: Nee
26
27
  previous: «Vorige
@@ -22,6 +22,7 @@
22
22
  enabled: Aktivert?
23
23
  general_info: "Generell info"
24
24
  help: Hjelp
25
+ loading: "Loading ..."
25
26
  next: "Neste »"
26
27
  no_text: Nei
27
28
  previous: «Forrige
@@ -21,6 +21,7 @@ pl:
21
21
  enabled: Aktywny?
22
22
  general_info: "Informacje ogólne"
23
23
  help: Pomoc
24
+ loading: "Ładowanie ..."
24
25
  next: "Następna »"
25
26
  no_text: Nie
26
27
  previous: «Poprzednia
@@ -21,6 +21,7 @@ pt-PT:
21
21
  enabled: Ativado?
22
22
  general_info: "General info"
23
23
  help: Ajuda
24
+ loading: "Carregando ..."
24
25
  next: "Next »"
25
26
  no_text: Não
26
27
  previous: «Anterior
@@ -21,6 +21,7 @@ ro:
21
21
  enabled: Activat?
22
22
  general_info: "General info"
23
23
  help: Ajuta
24
+ loading: "Se incarca ..."
24
25
  next: "Next »"
25
26
  no_text: Nu
26
27
  previous: «Înapoi
@@ -21,6 +21,7 @@ ru:
21
21
  enabled: Включен?
22
22
  general_info: "Общая информация"
23
23
  help: Помощь
24
+ loading: "Загрузка ..."
24
25
  next: "Следующая »"
25
26
  no_text: Нет
26
27
  previous: «Предыдущая
@@ -21,6 +21,7 @@ sk:
21
21
  enabled: Povolené?
22
22
  general_info: "Všeobecné info"
23
23
  help: Pomoc
24
+ loading: "Loading ..."
24
25
  next: "Ďalšie »"
25
26
  no_text: Nie
26
27
  previous: «Predchádzajúci
@@ -21,6 +21,7 @@ sl:
21
21
  enabled: Omogočeno?
22
22
  general_info: "General info"
23
23
  help: Pomoč
24
+ loading: "Nalaganje ..."
24
25
  next: "Next »"
25
26
  no_text: Ne
26
27
  previous: «Prejšnji
@@ -21,6 +21,7 @@ sq:
21
21
  enabled: Enabled?
22
22
  general_info: "Informacione të përgjithshme"
23
23
  help: Ndihma
24
+ loading: "Loading ..."
24
25
  next: "Next »"
25
26
  no_text: Jo
26
27
  previous: «Previous
@@ -21,6 +21,7 @@ sr:
21
21
  enabled: Омогућен?
22
22
  general_info: "Опште информације"
23
23
  help: Помоћ
24
+ loading: "Учитавање ..."
24
25
  next: "Некст »"
25
26
  no_text: Не
26
27
  previous: «Претходна
@@ -21,6 +21,7 @@ sv:
21
21
  enabled: Aktiverat?
22
22
  general_info: Allmänt
23
23
  help: Hjälp
24
+ loading: "Laddar ..."
24
25
  next: "Nästa »"
25
26
  no_text: Nej
26
27
  previous: «Föregående
@@ -21,6 +21,7 @@ th:
21
21
  enabled: เปิดใช้งาน?
22
22
  general_info: ข้อมูลทั่วไป
23
23
  help: ช่วยเหลือ
24
+ loading: "โหลด ..."
24
25
  next: "ถัดไป »"
25
26
  no_text: ไม่ใช่
26
27
  previous: «ก่อนหน้า
@@ -21,6 +21,7 @@ tl:
21
21
  enabled: Napagana?
22
22
  general_info: "Pangkalahatang Impormasyon"
23
23
  help: Tulong
24
+ loading: "Naglo-load ..."
24
25
  next: "Next »"
25
26
  no_text: Hindi
26
27
  previous: «Nakaraang
@@ -21,6 +21,7 @@ tr:
21
21
  enabled: "Etkin mi?"
22
22
  general_info: "Genel Bilgi"
23
23
  help: Yardım
24
+ loading: "Yükleniyor ..."
24
25
  next: "Sonraki »"
25
26
  no_text: Hayır
26
27
  previous: «Önceki
@@ -21,6 +21,7 @@ uk:
21
21
  enabled: Включено?
22
22
  general_info: "Загальна інформація"
23
23
  help: Допомога
24
+ loading: "Завантаження ..."
24
25
  next: "Наступна »"
25
26
  no_text: Ні
26
27
  previous: «Попередня
@@ -21,6 +21,7 @@ vi:
21
21
  enabled: Bật?
22
22
  general_info: "Thông tin chung"
23
23
  help: "Giúp đỡ"
24
+ loading: "Loading ..."
24
25
  next: "Tiếp theo »"
25
26
  no_text: Không
26
27
  previous: «Trước
@@ -21,6 +21,7 @@ zh-CN:
21
21
  enabled: 启用?
22
22
  general_info: 一般资料
23
23
  help: 帮助
24
+ loading: 载入中...
24
25
  next: 下一页»
25
26
  no_text: 否
26
27
  previous: «上一页
@@ -21,6 +21,7 @@ zh-TW:
21
21
  enabled: 啟用?
22
22
  general_info: 一般資料
23
23
  help: 幫助
24
+ loading: 載入中...
24
25
  next: 下一頁»
25
26
  no_text: 否
26
27
  previous: «上一頁
@@ -21,6 +21,7 @@ zh:
21
21
  enabled: 启用?
22
22
  general_info: 一般资料
23
23
  help: 帮助
24
+ loading: 载入中...
24
25
  next: 下一页»
25
26
  no_text: 否
26
27
  previous: «上一页
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-engine}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball"]
12
- s.date = %q{2009-10-01}
12
+ s.date = %q{2009-10-16}
13
13
  s.description = %q{The base engine for the muck system. Contains common tables, custom for, css and javascript.}
14
14
  s.email = %q{justinball@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -217,10 +217,13 @@ Gem::Specification.new do |s|
217
217
  "public/images/icons/comment.png",
218
218
  "public/images/icons/delete.png",
219
219
  "public/images/icons/exclaim.png",
220
+ "public/images/icons/external.png",
221
+ "public/images/icons/feed.png",
220
222
  "public/images/icons/grey_guy.png",
221
223
  "public/images/icons/hide.png",
222
224
  "public/images/icons/information.png",
223
225
  "public/images/icons/minus.png",
226
+ "public/images/icons/pending.png",
224
227
  "public/images/icons/question.png",
225
228
  "public/images/icons/search_box.png",
226
229
  "public/images/icons/star.png",
@@ -241,6 +244,7 @@ Gem::Specification.new do |s|
241
244
  "public/javascripts/jquery/jquery.jgrowl.js",
242
245
  "public/javascripts/jquery/jquery.js",
243
246
  "public/javascripts/jquery/jquery.tips.js",
247
+ "public/javascripts/jquery/jrails.js",
244
248
  "public/javascripts/muck.js",
245
249
  "public/javascripts/muck.js",
246
250
  "public/javascripts/muck_time/en.js",
@@ -0,0 +1 @@
1
+ (function($){$().ajaxSend(function(a,xhr,s){xhr.setRequestHeader("Accept","text/javascript, text/html, application/xml, text/xml, */*")})})(jQuery);(function($){$.fn.reset=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};$.fn.enable=function(){return this.each(function(){this.disabled=false})};$.fn.disable=function(){return this.each(function(){this.disabled=true})}})(jQuery);(function($){$.extend({fieldEvent:function(el,obs){var field=el[0]||el,e="change";if(field.type=="radio"||field.type=="checkbox"){e="click"}else{if(obs&&field.type=="text"||field.type=="textarea"){e="keyup"}}return e}});$.fn.extend({delayedObserver:function(delay,callback){var el=$(this);if(typeof window.delayedObserverStack=="undefined"){window.delayedObserverStack=[]}if(typeof window.delayedObserverCallback=="undefined"){window.delayedObserverCallback=function(stackPos){observed=window.delayedObserverStack[stackPos];if(observed.timer){clearTimeout(observed.timer)}observed.timer=setTimeout(function(){observed.timer=null;observed.callback(observed.obj,observed.obj.formVal())},observed.delay*1000);observed.oldVal=observed.obj.formVal()}}window.delayedObserverStack.push({obj:el,timer:null,delay:delay,oldVal:el.formVal(),callback:callback});var stackPos=window.delayedObserverStack.length-1;if(el[0].tagName=="FORM"){$(":input",el).each(function(){var field=$(this);field.bind($.fieldEvent(field,delay),function(){observed=window.delayedObserverStack[stackPos];if(observed.obj.formVal()==observed.obj.oldVal){return}else{window.delayedObserverCallback(stackPos)}})})}else{el.bind($.fieldEvent(el,delay),function(){observed=window.delayedObserverStack[stackPos];if(observed.obj.formVal()==observed.obj.oldVal){return}else{window.delayedObserverCallback(stackPos)}})}},formVal:function(){var el=this[0];if(el.tagName=="FORM"){return this.serialize()}if(el.type=="checkbox"||self.type=="radio"){return this.filter("input:checked").val()||""}else{return this.val()}}})})(jQuery);(function($){$.fn.extend({visualEffect:function(o){e=o.replace(/\_(.)/g,function(m,l){return l.toUpperCase()});return eval("$(this)."+e+"()")},appear:function(speed,callback){return this.fadeIn(speed,callback)},blindDown:function(speed,callback){return this.show("blind",{direction:"vertical"},speed,callback)},blindUp:function(speed,callback){return this.hide("blind",{direction:"vertical"},speed,callback)},blindRight:function(speed,callback){return this.show("blind",{direction:"horizontal"},speed,callback)},blindLeft:function(speed,callback){this.hide("blind",{direction:"horizontal"},speed,callback);return this},dropOut:function(speed,callback){return this.hide("drop",{direction:"down"},speed,callback)},dropIn:function(speed,callback){return this.show("drop",{direction:"up"},speed,callback)},fade:function(speed,callback){return this.fadeOut(speed,callback)},fadeToggle:function(speed,callback){return this.animate({opacity:"toggle"},speed,callback)},fold:function(speed,callback){return this.hide("fold",{},speed,callback)},foldOut:function(speed,callback){return this.show("fold",{},speed,callback)},grow:function(speed,callback){return this.show("scale",{},speed,callback)},highlight:function(speed,callback){return this.show("highlight",{},speed,callback)},puff:function(speed,callback){return this.hide("puff",{},speed,callback)},pulsate:function(speed,callback){return this.show("pulsate",{},speed,callback)},shake:function(speed,callback){return this.show("shake",{},speed,callback)},shrink:function(speed,callback){return this.hide("scale",{},speed,callback)},squish:function(speed,callback){return this.hide("scale",{origin:["top","left"]},speed,callback)},slideUp:function(speed,callback){return this.hide("slide",{direction:"up"},speed,callback)},slideDown:function(speed,callback){return this.show("slide",{direction:"up"},speed,callback)},switchOff:function(speed,callback){return this.hide("clip",{},speed,callback)},switchOn:function(speed,callback){return this.show("clip",{},speed,callback)}})})(jQuery);
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.2.1
4
+ version: 0.2.2
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-10-01 00:00:00 -06:00
12
+ date: 2009-10-16 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -159,10 +159,13 @@ files:
159
159
  - public/images/icons/comment.png
160
160
  - public/images/icons/delete.png
161
161
  - public/images/icons/exclaim.png
162
+ - public/images/icons/external.png
163
+ - public/images/icons/feed.png
162
164
  - public/images/icons/grey_guy.png
163
165
  - public/images/icons/hide.png
164
166
  - public/images/icons/information.png
165
167
  - public/images/icons/minus.png
168
+ - public/images/icons/pending.png
166
169
  - public/images/icons/question.png
167
170
  - public/images/icons/search_box.png
168
171
  - public/images/icons/star.png
@@ -182,6 +185,7 @@ files:
182
185
  - public/javascripts/jquery/jquery.jgrowl.js
183
186
  - public/javascripts/jquery/jquery.js
184
187
  - public/javascripts/jquery/jquery.tips.js
188
+ - public/javascripts/jquery/jrails.js
185
189
  - public/javascripts/muck.js
186
190
  - public/javascripts/muck_time/en.js
187
191
  - public/stylesheets/admin.css