beef-admin_area 0.3.4 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. data/VERSION +1 -1
  2. data/app/controllers/admin/users_controller.rb +16 -1
  3. data/app/views/admin/users/index.html.erb +27 -2
  4. data/beef-admin_area.gemspec +77 -6
  5. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/langs/en.js +170 -1
  6. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -1
  7. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +635 -0
  8. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  9. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  10. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -1
  11. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/editor_plugin.js +1 -1
  12. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/editor_plugin_src.js +952 -0
  13. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/js/pastetext.js +36 -1
  14. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/js/pasteword.js +51 -1
  15. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/langs/en_dlg.js +5 -1
  16. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/pastetext.htm +2 -8
  17. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/pasteword.htm +2 -8
  18. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/css/template.css +23 -1
  19. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/editor_plugin.js +1 -1
  20. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/editor_plugin_src.js +159 -0
  21. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/js/template.js +106 -1
  22. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/langs/en_dlg.js +15 -1
  23. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/template.htm +2 -9
  24. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
  25. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/wordcount/editor_plugin_src.js +98 -0
  26. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/about.htm +54 -0
  27. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/anchor.htm +2 -7
  28. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/charmap.htm +52 -0
  29. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/color_picker.htm +1 -3
  30. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/editor_template.js +1 -1
  31. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/editor_template_src.js +1217 -0
  32. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/image.htm +80 -0
  33. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/img/icons.gif +0 -0
  34. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/about.js +72 -0
  35. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/anchor.js +37 -1
  36. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/charmap.js +335 -0
  37. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/color_picker.js +253 -1
  38. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/image.js +245 -0
  39. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/link.js +156 -1
  40. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/langs/en.js +62 -1
  41. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/langs/en_dlg.js +51 -1
  42. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/link.htm +2 -7
  43. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/content.css +36 -1
  44. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/dialog.css +117 -1
  45. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/ui.css +213 -1
  46. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/content.css +36 -0
  47. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/dialog.css +116 -0
  48. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  49. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  50. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  51. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/ui.css +215 -0
  52. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  53. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  54. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/source_editor.htm +4 -10
  55. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/tiny_mce.js +1 -1
  56. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/tiny_mce_popup.js +5 -1
  57. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/utils/editable_selects.js +70 -0
  58. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/utils/form_utils.js +200 -1
  59. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/utils/mctabs.js +77 -1
  60. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/utils/validate.js +220 -1
  61. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/langs/en.js +1 -0
  62. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/editor_plugin.js +1 -0
  63. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  64. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  65. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  66. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  67. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  68. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/skins/clearlooks2/window.css +1 -0
  69. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/template.htm +387 -0
  70. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/paste/editor_plugin.js +1 -0
  71. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/paste/js/pastetext.js +1 -0
  72. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/paste/js/pasteword.js +1 -0
  73. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/paste/langs/en_dlg.js +1 -0
  74. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/paste/pastetext.htm +33 -0
  75. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/paste/pasteword.htm +27 -0
  76. data/generators/admin_area_files/templates/public/javascripts/admin/{tiny_mce → tiny_mce.old}/plugins/safari/blank.htm +0 -0
  77. data/generators/admin_area_files/templates/public/javascripts/admin/{tiny_mce → tiny_mce.old}/plugins/safari/editor_plugin.js +0 -0
  78. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/template/blank.htm +12 -0
  79. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/template/css/template.css +1 -0
  80. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/template/editor_plugin.js +1 -0
  81. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/template/js/template.js +1 -0
  82. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/template/langs/en_dlg.js +1 -0
  83. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/template/template.htm +38 -0
  84. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/anchor.htm +31 -0
  85. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/color_picker.htm +75 -0
  86. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/editor_template.js +1 -0
  87. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/img/colorpicker.jpg +0 -0
  88. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/img/icons.gif +0 -0
  89. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/js/anchor.js +1 -0
  90. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/js/color_picker.js +1 -0
  91. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/js/link.js +1 -0
  92. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/js/source_editor.js +62 -0
  93. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/langs/en.js +1 -0
  94. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/langs/en_dlg.js +1 -0
  95. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/link.htm +63 -0
  96. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/content.css +1 -0
  97. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/dialog.css +1 -0
  98. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/img/buttons.png +0 -0
  99. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/img/items.gif +0 -0
  100. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  101. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/img/menu_check.gif +0 -0
  102. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/img/progress.gif +0 -0
  103. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/img/tabs.gif +0 -0
  104. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/ui.css +1 -0
  105. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/source_editor.htm +31 -0
  106. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/tiny_mce.js +1 -0
  107. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/tiny_mce_popup.js +1 -0
  108. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/utils/form_utils.js +1 -0
  109. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/utils/mctabs.js +1 -0
  110. data/generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/utils/validate.js +1 -0
  111. metadata +78 -7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.3.6
@@ -5,7 +5,22 @@ class Admin::UsersController < Admin::BaseController
5
5
  # GET /users
6
6
  # GET /users.xml
7
7
  def index
8
- @users = User.paginate :page => params[:page], :per_page => 20, :order => sort_order(:default => 'asc')
8
+ conditions = []
9
+ condition_params = []
10
+ query_type = ' AND '
11
+
12
+ unless params[:search].nil?
13
+ params[:search].each do |key,value|
14
+ unless value.blank? || !User.new.respond_to?(key)
15
+ conditions << "users.#{key.to_s} LIKE ?"
16
+ condition_params << "%#{value}%"
17
+ end
18
+ end
19
+
20
+ query_type = ' OR ' if (params[:search][:query_type] || '') == 'any'
21
+ end
22
+
23
+ @users = User.paginate :page => params[:page], :per_page => 20, :order => sort_order(:default => 'asc'), :conditions => condition_params.unshift(conditions.join(query_type))
9
24
 
10
25
  respond_to do |format|
11
26
  format.html # index.html.erb
@@ -9,7 +9,7 @@
9
9
  <table>
10
10
  <thead>
11
11
  <tr>
12
- <%= sortable_table_header :name => "Name", :sort => "title" %>
12
+ <%= sortable_table_header :name => "Name", :sort => "name" %>
13
13
  <%= sortable_table_header :name => "Email", :sort => "email" %>
14
14
  <%= sortable_table_header :name => "Role", :sort => "role" %>
15
15
  <th colspan="2">Actions</th>
@@ -28,7 +28,7 @@
28
28
  </tbody>
29
29
  <tfoot>
30
30
  <tr>
31
- <%= sortable_table_header :name => "Name", :sort => "title" %>
31
+ <%= sortable_table_header :name => "Name", :sort => "name" %>
32
32
  <%= sortable_table_header :name => "Email", :sort => "email" %>
33
33
  <%= sortable_table_header :name => "Role", :sort => "role" %>
34
34
  <th colspan="2">Actions</th>
@@ -37,3 +37,28 @@
37
37
  </table>
38
38
 
39
39
  <%= will_paginate @users %>
40
+
41
+
42
+
43
+ <% content_for :sub_content do %>
44
+ <h2>Filter<h2>
45
+
46
+ <% form_for :search, :html => {:method => :get} do |f| %>
47
+ <p>
48
+ <%= f.label :name %><br/>
49
+ <%= f.text_field :name, :value => params[:search][:name] %>
50
+ </p>
51
+ <p>
52
+ <%= f.label :email %><br/>
53
+ <%= f.text_field :email, :value => params[:search][:email] %>
54
+ </p>
55
+ <p>
56
+ <%= f.submit "Filter", :disable_with => 'Filtering...' %>
57
+ <%= f.label :query_type_all, "all" %>
58
+ <%= f.radio_button :query_type, 'all', :checked => ('checked' if (params[:search][:query_type] || 'all') == 'all'), :title => 'Match ALL criteria above.' %>
59
+ <%= f.label :query_type_any, "any" %>
60
+ <%= f.radio_button :query_type, 'any', :checked => ('checked' if (params[:search][:query_type] || '') == 'any'), :title => 'Match ANY criteria above.' %>
61
+ </p>
62
+ <% end -%>
63
+
64
+ <% end %>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{beef-admin_area}
8
- s.version = "0.3.4"
8
+ s.version = "0.3.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Steve England"]
12
- s.date = %q{2010-07-06}
12
+ s.date = %q{2010-07-23}
13
13
  s.email = %q{steve@wearebeef.co.uk}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -118,36 +118,98 @@ Gem::Specification.new do |s|
118
118
  "generators/admin_area_files/templates/public/images/textile-editor/strikethrough.png",
119
119
  "generators/admin_area_files/templates/public/images/textile-editor/underline.png",
120
120
  "generators/admin_area_files/templates/public/javascripts/admin/application.js",
121
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/langs/en.js",
122
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/editor_plugin.js",
123
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/skins/clearlooks2/img/button.gif",
124
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif",
125
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/skins/clearlooks2/img/corners.gif",
126
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif",
127
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif",
128
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/skins/clearlooks2/window.css",
129
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/inlinepopups/template.htm",
130
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/paste/editor_plugin.js",
131
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/paste/js/pastetext.js",
132
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/paste/js/pasteword.js",
133
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/paste/langs/en_dlg.js",
134
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/paste/pastetext.htm",
135
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/paste/pasteword.htm",
136
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/safari/blank.htm",
137
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/safari/editor_plugin.js",
138
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/template/blank.htm",
139
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/template/css/template.css",
140
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/template/editor_plugin.js",
141
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/template/js/template.js",
142
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/template/langs/en_dlg.js",
143
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/plugins/template/template.htm",
144
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/anchor.htm",
145
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/color_picker.htm",
146
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/editor_template.js",
147
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/img/colorpicker.jpg",
148
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/img/icons.gif",
149
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/js/anchor.js",
150
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/js/color_picker.js",
151
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/js/link.js",
152
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/js/source_editor.js",
153
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/langs/en.js",
154
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/langs/en_dlg.js",
155
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/link.htm",
156
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/content.css",
157
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/dialog.css",
158
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/img/buttons.png",
159
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/img/items.gif",
160
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/img/menu_arrow.gif",
161
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/img/menu_check.gif",
162
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/img/progress.gif",
163
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/img/tabs.gif",
164
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/skins/default/ui.css",
165
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/themes/advanced/source_editor.htm",
166
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/tiny_mce.js",
167
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/tiny_mce_popup.js",
168
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/utils/form_utils.js",
169
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/utils/mctabs.js",
170
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce.old/utils/validate.js",
121
171
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/langs/en.js",
122
172
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/editor_plugin.js",
173
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/editor_plugin_src.js",
174
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif",
123
175
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif",
124
176
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif",
177
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif",
125
178
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif",
126
179
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif",
127
180
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif",
128
181
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css",
129
182
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/inlinepopups/template.htm",
130
183
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/editor_plugin.js",
184
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/editor_plugin_src.js",
131
185
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/js/pastetext.js",
132
186
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/js/pasteword.js",
133
187
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/langs/en_dlg.js",
134
188
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/pastetext.htm",
135
189
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/paste/pasteword.htm",
136
- "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/safari/blank.htm",
137
- "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/safari/editor_plugin.js",
138
190
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/blank.htm",
139
191
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/css/template.css",
140
192
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/editor_plugin.js",
193
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/editor_plugin_src.js",
141
194
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/js/template.js",
142
195
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/langs/en_dlg.js",
143
196
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/template/template.htm",
197
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/wordcount/editor_plugin.js",
198
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/plugins/wordcount/editor_plugin_src.js",
199
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/about.htm",
144
200
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/anchor.htm",
201
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/charmap.htm",
145
202
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/color_picker.htm",
146
203
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/editor_template.js",
204
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/editor_template_src.js",
205
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/image.htm",
147
206
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/img/colorpicker.jpg",
148
207
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/img/icons.gif",
208
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/about.js",
149
209
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/anchor.js",
210
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/charmap.js",
150
211
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/color_picker.js",
212
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/image.js",
151
213
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/link.js",
152
214
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/js/source_editor.js",
153
215
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/langs/en.js",
@@ -162,9 +224,18 @@ Gem::Specification.new do |s|
162
224
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/img/progress.gif",
163
225
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/img/tabs.gif",
164
226
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/default/ui.css",
227
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/content.css",
228
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/dialog.css",
229
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png",
230
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png",
231
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png",
232
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/ui.css",
233
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/ui_black.css",
234
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css",
165
235
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/themes/advanced/source_editor.htm",
166
236
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/tiny_mce.js",
167
237
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/tiny_mce_popup.js",
238
+ "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/utils/editable_selects.js",
168
239
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/utils/form_utils.js",
169
240
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/utils/mctabs.js",
170
241
  "generators/admin_area_files/templates/public/javascripts/admin/tiny_mce/utils/validate.js",
@@ -201,8 +272,8 @@ Gem::Specification.new do |s|
201
272
  s.rubygems_version = %q{1.3.7}
202
273
  s.summary = %q{Rails engine that provides a standard admin area with user managament}
203
274
  s.test_files = [
204
- "test/admin_area_test.rb",
205
- "test/test_helper.rb"
275
+ "test/test_helper.rb",
276
+ "test/admin_area_test.rb"
206
277
  ]
207
278
 
208
279
  if s.respond_to? :specification_version then
@@ -1 +1,170 @@
1
- tinyMCE.addI18n({en:{common:{edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",apply:"Apply",insert:"Insert",update:"Update",cancel:"Cancel",close:"Close",browse:"Browse",class_name:"Class",not_set:"-- Not set --",clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?",clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.",popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",invalid_data:"Error: Invalid values entered, these are marked in red.",more_colors:"More colors"},contextmenu:{align:"Alignment",left:"Left",center:"Center",right:"Right",full:"Full"},insertdatetime:{date_fmt:"%Y-%m-%d",time_fmt:"%H:%M:%S",insertdate_desc:"Insert date",inserttime_desc:"Insert time",months_long:"January,February,March,April,May,June,July,August,September,October,November,December",months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"},print:{print_desc:"Print"},preview:{preview_desc:"Preview"},directionality:{ltr_desc:"Direction left to right",rtl_desc:"Direction right to left"},layer:{insertlayer_desc:"Insert new layer",forward_desc:"Move forward",backward_desc:"Move backward",absolute_desc:"Toggle absolute positioning",content:"New layer..."},save:{save_desc:"Save",cancel_desc:"Cancel all changes"},nonbreaking:{nonbreaking_desc:"Insert non-breaking space character"},iespell:{iespell_desc:"Run spell checking",download:"ieSpell not detected. Do you want to install it now?"},advhr:{advhr_desc:"Horizontal rule"},emotions:{emotions_desc:"Emotions"},searchreplace:{search_desc:"Find",replace_desc:"Find/Replace"},advimage:{image_desc:"Insert/edit image"},advlink:{link_desc:"Insert/edit link"},xhtmlxtras:{cite_desc:"Citation",abbr_desc:"Abbreviation",acronym_desc:"Acronym",del_desc:"Deletion",ins_desc:"Insertion",attribs_desc:"Insert/Edit Attributes"},style:{desc:"Edit CSS Style"},paste:{paste_text_desc:"Paste as Plain Text",paste_word_desc:"Paste from Word",selectall_desc:"Select All"},paste_dlg:{text_title:"Use CTRL+V on your keyboard to paste the text into the window.",text_linebreaks:"Keep linebreaks",word_title:"Use CTRL+V on your keyboard to paste the text into the window."},table:{desc:"Inserts a new table",row_before_desc:"Insert row before",row_after_desc:"Insert row after",delete_row_desc:"Delete row",col_before_desc:"Insert column before",col_after_desc:"Insert column after",delete_col_desc:"Remove column",split_cells_desc:"Split merged table cells",merge_cells_desc:"Merge table cells",row_desc:"Table row properties",cell_desc:"Table cell properties",props_desc:"Table properties",paste_row_before_desc:"Paste table row before",paste_row_after_desc:"Paste table row after",cut_row_desc:"Cut table row",copy_row_desc:"Copy table row",del:"Delete table",row:"Row",col:"Column",cell:"Cell"},autosave:{unload_msg:"The changes you made will be lost if you navigate away from this page."},fullscreen:{desc:"Toggle fullscreen mode"},media:{desc:"Insert / edit embedded media",edit:"Edit embedded media"},fullpage:{desc:"Document properties"},template:{desc:"Insert predefined template content"},visualchars:{desc:"Visual control characters on/off."},spellchecker:{desc:"Toggle spellchecker",menu:"Spellchecker settings",ignore_word:"Ignore word",ignore_words:"Ignore all",langs:"Languages",wait:"Please wait...",sug:"Suggestions",no_sug:"No suggestions",no_mpell:"No misspellings found."},pagebreak:{desc:"Insert page break."}}});
1
+ tinyMCE.addI18n({en:{
2
+ common:{
3
+ edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
4
+ apply:"Apply",
5
+ insert:"Insert",
6
+ update:"Update",
7
+ cancel:"Cancel",
8
+ close:"Close",
9
+ browse:"Browse",
10
+ class_name:"Class",
11
+ not_set:"-- Not set --",
12
+ clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?",
13
+ clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.",
14
+ popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",
15
+ invalid_data:"Error: Invalid values entered, these are marked in red.",
16
+ more_colors:"More colors"
17
+ },
18
+ contextmenu:{
19
+ align:"Alignment",
20
+ left:"Left",
21
+ center:"Center",
22
+ right:"Right",
23
+ full:"Full"
24
+ },
25
+ insertdatetime:{
26
+ date_fmt:"%Y-%m-%d",
27
+ time_fmt:"%H:%M:%S",
28
+ insertdate_desc:"Insert date",
29
+ inserttime_desc:"Insert time",
30
+ months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
31
+ months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
32
+ day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
33
+ day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"
34
+ },
35
+ print:{
36
+ print_desc:"Print"
37
+ },
38
+ preview:{
39
+ preview_desc:"Preview"
40
+ },
41
+ directionality:{
42
+ ltr_desc:"Direction left to right",
43
+ rtl_desc:"Direction right to left"
44
+ },
45
+ layer:{
46
+ insertlayer_desc:"Insert new layer",
47
+ forward_desc:"Move forward",
48
+ backward_desc:"Move backward",
49
+ absolute_desc:"Toggle absolute positioning",
50
+ content:"New layer..."
51
+ },
52
+ save:{
53
+ save_desc:"Save",
54
+ cancel_desc:"Cancel all changes"
55
+ },
56
+ nonbreaking:{
57
+ nonbreaking_desc:"Insert non-breaking space character"
58
+ },
59
+ iespell:{
60
+ iespell_desc:"Run spell checking",
61
+ download:"ieSpell not detected. Do you want to install it now?"
62
+ },
63
+ advhr:{
64
+ advhr_desc:"Horizontal rule"
65
+ },
66
+ emotions:{
67
+ emotions_desc:"Emotions"
68
+ },
69
+ searchreplace:{
70
+ search_desc:"Find",
71
+ replace_desc:"Find/Replace"
72
+ },
73
+ advimage:{
74
+ image_desc:"Insert/edit image"
75
+ },
76
+ advlink:{
77
+ link_desc:"Insert/edit link"
78
+ },
79
+ xhtmlxtras:{
80
+ cite_desc:"Citation",
81
+ abbr_desc:"Abbreviation",
82
+ acronym_desc:"Acronym",
83
+ del_desc:"Deletion",
84
+ ins_desc:"Insertion",
85
+ attribs_desc:"Insert/Edit Attributes"
86
+ },
87
+ style:{
88
+ desc:"Edit CSS Style"
89
+ },
90
+ paste:{
91
+ paste_text_desc:"Paste as Plain Text",
92
+ paste_word_desc:"Paste from Word",
93
+ selectall_desc:"Select All",
94
+ plaintext_mode_sticky:"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.",
95
+ plaintext_mode:"Paste is now in plain text mode. Click again to toggle back to regular paste mode."
96
+ },
97
+ paste_dlg:{
98
+ text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
99
+ text_linebreaks:"Keep linebreaks",
100
+ word_title:"Use CTRL+V on your keyboard to paste the text into the window."
101
+ },
102
+ table:{
103
+ desc:"Inserts a new table",
104
+ row_before_desc:"Insert row before",
105
+ row_after_desc:"Insert row after",
106
+ delete_row_desc:"Delete row",
107
+ col_before_desc:"Insert column before",
108
+ col_after_desc:"Insert column after",
109
+ delete_col_desc:"Remove column",
110
+ split_cells_desc:"Split merged table cells",
111
+ merge_cells_desc:"Merge table cells",
112
+ row_desc:"Table row properties",
113
+ cell_desc:"Table cell properties",
114
+ props_desc:"Table properties",
115
+ paste_row_before_desc:"Paste table row before",
116
+ paste_row_after_desc:"Paste table row after",
117
+ cut_row_desc:"Cut table row",
118
+ copy_row_desc:"Copy table row",
119
+ del:"Delete table",
120
+ row:"Row",
121
+ col:"Column",
122
+ cell:"Cell"
123
+ },
124
+ autosave:{
125
+ unload_msg:"The changes you made will be lost if you navigate away from this page.",
126
+ restore_content:"Restore auto-saved content.",
127
+ warning_message:"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?."
128
+ },
129
+ fullscreen:{
130
+ desc:"Toggle fullscreen mode"
131
+ },
132
+ media:{
133
+ desc:"Insert / edit embedded media",
134
+ edit:"Edit embedded media"
135
+ },
136
+ fullpage:{
137
+ desc:"Document properties"
138
+ },
139
+ template:{
140
+ desc:"Insert predefined template content"
141
+ },
142
+ visualchars:{
143
+ desc:"Visual control characters on/off."
144
+ },
145
+ spellchecker:{
146
+ desc:"Toggle spellchecker",
147
+ menu:"Spellchecker settings",
148
+ ignore_word:"Ignore word",
149
+ ignore_words:"Ignore all",
150
+ langs:"Languages",
151
+ wait:"Please wait...",
152
+ sug:"Suggestions",
153
+ no_sug:"No suggestions",
154
+ no_mpell:"No misspellings found."
155
+ },
156
+ pagebreak:{
157
+ desc:"Insert page break."
158
+ },
159
+ advlist:{
160
+ types:"Types",
161
+ def:"Default",
162
+ lower_alpha:"Lower alpha",
163
+ lower_greek:"Lower greek",
164
+ lower_roman:"Lower roman",
165
+ upper_alpha:"Upper alpha",
166
+ upper_roman:"Upper roman",
167
+ circle:"Circle",
168
+ disc:"Disc",
169
+ square:"Square"
170
+ }}});
@@ -1 +1 @@
1
- (function(){var i=tinymce.DOM,f=tinymce.dom.Element,g=tinymce.dom.Event,h=tinymce.each,j=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(b,a){b.onBeforeRenderUI.add(function(){b.windowManager=new tinymce.InlineWindowManager(b);i.loadCSS(a+"/skins/"+(b.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(b){var a=this;a.parent(b);a.zIndex=300000;a.count=0;a.windows={}},open:function(a,u){var B=this,w,t="",b=B.editor,A=0,E=0,z,e,d,c,p,D,C;a=a||{};u=u||{};if(!a.inline){return B.parent(a,u)}if(!a.type){B.bookmark=b.selection.getBookmark(1)}w=i.uniqueId();z=i.getViewPort();a.width=parseInt(a.width||320);a.height=parseInt(a.height||240)+(tinymce.isIE?8:0);a.min_width=parseInt(a.min_width||150);a.min_height=parseInt(a.min_height||100);a.max_width=parseInt(a.max_width||2000);a.max_height=parseInt(a.max_height||2000);a.left=a.left||Math.round(Math.max(z.x,z.x+(z.w/2)-(a.width/2)));a.top=a.top||Math.round(Math.max(z.y,z.y+(z.h/2)-(a.height/2)));a.movable=a.resizable=true;u.mce_width=a.width;u.mce_height=a.height;u.mce_inline=true;u.mce_window_id=w;u.mce_auto_focus=a.auto_focus;B.features=a;B.params=u;B.onOpen.dispatch(B,a,u);if(a.type){t+=" mceModal";if(a.type){t+=" mce"+a.type.substring(0,1).toUpperCase()+a.type.substring(1)}a.resizable=false}if(a.statusbar){t+=" mceStatusbar"}if(a.resizable){t+=" mceResizable"}if(a.minimizable){t+=" mceMinimizable"}if(a.maximizable){t+=" mceMaximizable"}if(a.movable){t+=" mceMovable"}B._addAll(i.doc.body,["div",{id:w,"class":b.settings.inlinepopups_skin||"clearlooks2",style:"width:100px;height:100px"},["div",{id:w+"_wrapper","class":"mceWrapper"+t},["div",{id:w+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:w+"_title"},a.title||""]],["div",{id:w+"_middle","class":"mceMiddle"},["div",{id:w+"_left","class":"mceLeft"}],["span",{id:w+"_content"}],["div",{id:w+"_right","class":"mceRight"}]],["div",{id:w+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:w+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:w+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:w+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]);i.setStyles(w,{top:-10000,left:-10000});if(tinymce.isGecko){i.setStyle(w,"overflow","auto")}if(!a.type){A+=i.get(w+"_left").clientWidth;A+=i.get(w+"_right").clientWidth;E+=i.get(w+"_top").clientHeight;E+=i.get(w+"_bottom").clientHeight}i.setStyles(w,{top:a.top,left:a.left,width:a.width+A,height:a.height+E});C=a.url||a.file;if(C){if(tinymce.relaxedDomain){C+=(C.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain}C=tinymce._addVer(C)}if(!a.type){i.add(w+"_content","iframe",{id:w+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"});i.setStyles(w+"_ifr",{width:a.width,height:a.height});i.setAttrib(w+"_ifr","src",C)}else{i.add(w+"_wrapper","a",{id:w+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok");if(a.type=="confirm"){i.add(w+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel")}i.add(w+"_middle","div",{"class":"mceIcon"});i.setHTML(w+"_content",a.content.replace("\n","<br />"))}d=g.add(w,"mousedown",function(l){var k=l.target,m,n;m=B.windows[w];B.focus(w);if(k.nodeName=="A"||k.nodeName=="a"){if(k.className=="mceMax"){m.oldPos=m.element.getXY();m.oldSize=m.element.getSize();n=i.getViewPort();n.w-=2;n.h-=2;m.element.moveTo(n.x,n.y);m.element.resizeTo(n.w,n.h);i.setStyles(w+"_ifr",{width:n.w-m.deltaWidth,height:n.h-m.deltaHeight});i.addClass(w+"_wrapper","mceMaximized")}else{if(k.className=="mceMed"){m.element.moveTo(m.oldPos.x,m.oldPos.y);m.element.resizeTo(m.oldSize.w,m.oldSize.h);m.iframeElement.resizeTo(m.oldSize.w-m.deltaWidth,m.oldSize.h-m.deltaHeight);i.removeClass(w+"_wrapper","mceMaximized")}else{if(k.className=="mceMove"){return B._startDrag(w,l,k.className)}else{if(i.hasClass(k,"mceResize")){return B._startDrag(w,l,k.className.substring(13))}}}}}});c=g.add(w,"click",function(k){var l=k.target;B.focus(w);if(l.nodeName=="A"||l.nodeName=="a"){switch(l.className){case"mceClose":B.close(null,w);return g.cancel(k);case"mceButton mceOk":case"mceButton mceCancel":a.button_func(l.className=="mceButton mceOk");return g.cancel(k)}}});D=B.windows[w]={id:w,mousedown_func:d,click_func:c,element:new f(w,{blocker:1,container:b.getContainer()}),iframeElement:new f(w+"_ifr"),features:a,deltaWidth:A,deltaHeight:E};D.iframeElement.on("focus",function(){B.focus(w)});if(B.count==0&&B.editor.getParam("dialog_type","modal")=="modal"){i.add(i.doc.body,"div",{id:"mceModalBlocker","class":(B.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:B.zIndex-1}});i.show("mceModalBlocker")}else{i.setStyle("mceModalBlocker","z-index",B.zIndex-1)}if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!i.boxModel)){i.setStyles("mceModalBlocker",{position:"absolute",left:z.x,top:z.y,width:z.w-2,height:z.h-2})}B.focus(w);B._fixIELayout(w,1);if(i.get(w+"_ok")){i.get(w+"_ok").focus()}B.count++;return D},focus:function(a){var b=this,c;if(c=b.windows[a]){c.zIndex=this.zIndex++;c.element.setStyle("zIndex",c.zIndex);c.element.update();a=a+"_wrapper";i.removeClass(b.lastId,"mceFocus");i.addClass(a,"mceFocus");b.lastId=a}},_addAll:function(b,d){var e,a,m=this,c=tinymce.DOM;if(j(d,"string")){b.appendChild(c.doc.createTextNode(d))}else{if(d.length){b=b.appendChild(c.create(d[0],d[1]));for(e=2;e<d.length;e++){m._addAll(b,d[e])}}}},_startDrag:function(e,d,w){var O=this,t,a,K=i.doc,X,R=O.windows[e],V=R.element,b=V.getXY(),c,M,p,W,N,I,J,T,U,Q,S,P,L;W={x:0,y:0};N=i.getViewPort();N.w-=2;N.h-=2;T=d.screenX;U=d.screenY;Q=S=P=L=0;t=g.add(K,"mouseup",function(k){g.remove(K,"mouseup",t);g.remove(K,"mousemove",a);if(X){X.remove()}V.moveBy(Q,S);V.resizeBy(P,L);M=V.getSize();i.setStyles(e+"_ifr",{width:M.w-R.deltaWidth,height:M.h-R.deltaHeight});O._fixIELayout(e,1);return g.cancel(k)});if(w!="Move"){H()}function H(){if(X){return}O._fixIELayout(e,0);i.add(K.body,"div",{id:"mceEventBlocker","class":"mceEventBlocker "+(O.editor.settings.inlinepopups_skin||"clearlooks2"),style:{zIndex:O.zIndex+1}});if(tinymce.isIE6||(tinymce.isIE&&!i.boxModel)){i.setStyles("mceEventBlocker",{position:"absolute",left:N.x,top:N.y,width:N.w-2,height:N.h-2})}X=new f("mceEventBlocker");X.update();c=V.getXY();M=V.getSize();I=W.x+c.x-N.x;J=W.y+c.y-N.y;i.add(X.get(),"div",{id:"mcePlaceHolder","class":"mcePlaceHolder",style:{left:I,top:J,width:M.w,height:M.h}});p=new f("mcePlaceHolder")}a=g.add(K,"mousemove",function(k){var n,m,l;H();n=k.screenX-T;m=k.screenY-U;switch(w){case"ResizeW":Q=n;P=0-n;break;case"ResizeE":P=n;break;case"ResizeN":case"ResizeNW":case"ResizeNE":if(w=="ResizeNW"){Q=n;P=0-n}else{if(w=="ResizeNE"){P=n}}S=m;L=0-m;break;case"ResizeS":case"ResizeSW":case"ResizeSE":if(w=="ResizeSW"){Q=n;P=0-n}else{if(w=="ResizeSE"){P=n}}L=m;break;case"mceMove":Q=n;S=m;break}if(P<(l=R.features.min_width-M.w)){if(Q!==0){Q+=P-l}P=l}if(L<(l=R.features.min_height-M.h)){if(S!==0){S+=L-l}L=l}P=Math.min(P,R.features.max_width-M.w);L=Math.min(L,R.features.max_height-M.h);Q=Math.max(Q,N.x-(I+N.x));S=Math.max(S,N.y-(J+N.y));Q=Math.min(Q,(N.w+N.x)-(I+M.w+N.x));S=Math.min(S,(N.h+N.y)-(J+M.h+N.y));if(Q+S!==0){if(I+Q<0){Q=0}if(J+S<0){S=0}p.moveTo(I+Q,J+S)}if(P+L!==0){p.resizeTo(M.w+P,M.h+L)}return g.cancel(k)});return g.cancel(d)},resizeBy:function(c,b,a){var d=this.windows[a];if(d){d.element.resizeBy(c,b);d.iframeElement.resizeBy(c,b)}},close:function(c,a){var e=this,m,b=i.doc,n=0,d,a;a=e._findId(a||c);if(!e.windows[a]){e.parent(c);return}e.count--;if(e.count==0){i.remove("mceModalBlocker")}if(m=e.windows[a]){e.onClose.dispatch(e);g.remove(b,"mousedown",m.mousedownFunc);g.remove(b,"click",m.clickFunc);g.clear(a);g.clear(a+"_ifr");i.setAttrib(a+"_ifr","src",'javascript:""');m.element.remove();delete e.windows[a];h(e.windows,function(k){if(k.zIndex>n){d=k;n=k.zIndex}});if(d){e.focus(d.id)}}},setTitle:function(c,b){var a;c=this._findId(c);if(a=i.get(c+"_title")){a.innerHTML=i.encode(b)}},alert:function(d,e,a){var b=this,c;c=b.open({title:b,type:"alert",button_func:function(l){if(e){e.call(l||b,l)}b.close(null,c.id)},content:i.encode(b.editor.getLang(d,d)),inline:1,width:400,height:130})},confirm:function(d,e,a){var b=this,c;c=b.open({title:b,type:"confirm",button_func:function(l){if(e){e.call(l||b,l)}b.close(null,c.id)},content:i.encode(b.editor.getLang(d,d)),inline:1,width:400,height:130})},_findId:function(b){var a=this;if(typeof(b)=="string"){return b}h(a.windows,function(d){var c=i.get(d.id+"_ifr");if(c&&b==c.contentWindow){b=d.id;return false}});return b},_fixIELayout:function(a,b){var d,c;if(!tinymce.isIE6){return}h(["n","s","w","e","nw","ne","sw","se"],function(l){var e=i.get(a+"_resize_"+l);i.setStyles(e,{width:b?e.clientWidth:"",height:b?e.clientHeight:"",cursor:i.getStyle(e,"cursor",1)});i.setStyle(a+"_bottom","bottom","-1px");e=0});if(d=this.windows[a]){d.element.hide();d.element.show();h(i.select("div,a",a),function(e,l){if(e.currentStyle.backgroundImage!="none"){c=new Image();c.src=e.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")}});i.get(a).style.filter=""}}});tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})();
1
+ (function(){var d=tinymce.DOM,b=tinymce.dom.Element,a=tinymce.dom.Event,e=tinymce.each,c=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(f,g){f.onBeforeRenderUI.add(function(){f.windowManager=new tinymce.InlineWindowManager(f);d.loadCSS(g+"/skins/"+(f.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(f){var g=this;g.parent(f);g.zIndex=300000;g.count=0;g.windows={}},open:function(r,j){var y=this,i,k="",q=y.editor,g=0,s=0,h,m,n,o,l,v,x;r=r||{};j=j||{};if(!r.inline){return y.parent(r,j)}if(!r.type){y.bookmark=q.selection.getBookmark(1)}i=d.uniqueId();h=d.getViewPort();r.width=parseInt(r.width||320);r.height=parseInt(r.height||240)+(tinymce.isIE?8:0);r.min_width=parseInt(r.min_width||150);r.min_height=parseInt(r.min_height||100);r.max_width=parseInt(r.max_width||2000);r.max_height=parseInt(r.max_height||2000);r.left=r.left||Math.round(Math.max(h.x,h.x+(h.w/2)-(r.width/2)));r.top=r.top||Math.round(Math.max(h.y,h.y+(h.h/2)-(r.height/2)));r.movable=r.resizable=true;j.mce_width=r.width;j.mce_height=r.height;j.mce_inline=true;j.mce_window_id=i;j.mce_auto_focus=r.auto_focus;y.features=r;y.params=j;y.onOpen.dispatch(y,r,j);if(r.type){k+=" mceModal";if(r.type){k+=" mce"+r.type.substring(0,1).toUpperCase()+r.type.substring(1)}r.resizable=false}if(r.statusbar){k+=" mceStatusbar"}if(r.resizable){k+=" mceResizable"}if(r.minimizable){k+=" mceMinimizable"}if(r.maximizable){k+=" mceMaximizable"}if(r.movable){k+=" mceMovable"}y._addAll(d.doc.body,["div",{id:i,"class":q.settings.inlinepopups_skin||"clearlooks2",style:"width:100px;height:100px"},["div",{id:i+"_wrapper","class":"mceWrapper"+k},["div",{id:i+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_title"},r.title||""]],["div",{id:i+"_middle","class":"mceMiddle"},["div",{id:i+"_left","class":"mceLeft"}],["span",{id:i+"_content"}],["div",{id:i+"_right","class":"mceRight"}]],["div",{id:i+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:i+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]);d.setStyles(i,{top:-10000,left:-10000});if(tinymce.isGecko){d.setStyle(i,"overflow","auto")}if(!r.type){g+=d.get(i+"_left").clientWidth;g+=d.get(i+"_right").clientWidth;s+=d.get(i+"_top").clientHeight;s+=d.get(i+"_bottom").clientHeight}d.setStyles(i,{top:r.top,left:r.left,width:r.width+g,height:r.height+s});x=r.url||r.file;if(x){if(tinymce.relaxedDomain){x+=(x.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain}x=tinymce._addVer(x)}if(!r.type){d.add(i+"_content","iframe",{id:i+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"});d.setStyles(i+"_ifr",{width:r.width,height:r.height});d.setAttrib(i+"_ifr","src",x)}else{d.add(i+"_wrapper","a",{id:i+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok");if(r.type=="confirm"){d.add(i+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel")}d.add(i+"_middle","div",{"class":"mceIcon"});d.setHTML(i+"_content",r.content.replace("\n","<br />"))}n=a.add(i,"mousedown",function(t){var u=t.target,f,p;f=y.windows[i];y.focus(i);if(u.nodeName=="A"||u.nodeName=="a"){if(u.className=="mceMax"){f.oldPos=f.element.getXY();f.oldSize=f.element.getSize();p=d.getViewPort();p.w-=2;p.h-=2;f.element.moveTo(p.x,p.y);f.element.resizeTo(p.w,p.h);d.setStyles(i+"_ifr",{width:p.w-f.deltaWidth,height:p.h-f.deltaHeight});d.addClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMed"){f.element.moveTo(f.oldPos.x,f.oldPos.y);f.element.resizeTo(f.oldSize.w,f.oldSize.h);f.iframeElement.resizeTo(f.oldSize.w-f.deltaWidth,f.oldSize.h-f.deltaHeight);d.removeClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMove"){return y._startDrag(i,t,u.className)}else{if(d.hasClass(u,"mceResize")){return y._startDrag(i,t,u.className.substring(13))}}}}}});o=a.add(i,"click",function(f){var p=f.target;y.focus(i);if(p.nodeName=="A"||p.nodeName=="a"){switch(p.className){case"mceClose":y.close(null,i);return a.cancel(f);case"mceButton mceOk":case"mceButton mceCancel":r.button_func(p.className=="mceButton mceOk");return a.cancel(f)}}});v=y.windows[i]={id:i,mousedown_func:n,click_func:o,element:new b(i,{blocker:1,container:q.getContainer()}),iframeElement:new b(i+"_ifr"),features:r,deltaWidth:g,deltaHeight:s};v.iframeElement.on("focus",function(){y.focus(i)});if(y.count==0&&y.editor.getParam("dialog_type","modal")=="modal"){d.add(d.doc.body,"div",{id:"mceModalBlocker","class":(y.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:y.zIndex-1}});d.show("mceModalBlocker")}else{d.setStyle("mceModalBlocker","z-index",y.zIndex-1)}if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceModalBlocker",{position:"absolute",left:h.x,top:h.y,width:h.w-2,height:h.h-2})}y.focus(i);y._fixIELayout(i,1);if(d.get(i+"_ok")){d.get(i+"_ok").focus()}y.count++;return v},focus:function(h){var g=this,f;if(f=g.windows[h]){f.zIndex=this.zIndex++;f.element.setStyle("zIndex",f.zIndex);f.element.update();h=h+"_wrapper";d.removeClass(g.lastId,"mceFocus");d.addClass(h,"mceFocus");g.lastId=h}},_addAll:function(k,h){var g,l,f=this,j=tinymce.DOM;if(c(h,"string")){k.appendChild(j.doc.createTextNode(h))}else{if(h.length){k=k.appendChild(j.create(h[0],h[1]));for(g=2;g<h.length;g++){f._addAll(k,h[g])}}}},_startDrag:function(v,G,E){var o=this,u,z,C=d.doc,f,l=o.windows[v],h=l.element,y=h.getXY(),x,q,F,g,A,s,r,j,i,m,k,n,B;g={x:0,y:0};A=d.getViewPort();A.w-=2;A.h-=2;j=G.screenX;i=G.screenY;m=k=n=B=0;u=a.add(C,"mouseup",function(p){a.remove(C,"mouseup",u);a.remove(C,"mousemove",z);if(f){f.remove()}h.moveBy(m,k);h.resizeBy(n,B);q=h.getSize();d.setStyles(v+"_ifr",{width:q.w-l.deltaWidth,height:q.h-l.deltaHeight});o._fixIELayout(v,1);return a.cancel(p)});if(E!="Move"){D()}function D(){if(f){return}o._fixIELayout(v,0);d.add(C.body,"div",{id:"mceEventBlocker","class":"mceEventBlocker "+(o.editor.settings.inlinepopups_skin||"clearlooks2"),style:{zIndex:o.zIndex+1}});if(tinymce.isIE6||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceEventBlocker",{position:"absolute",left:A.x,top:A.y,width:A.w-2,height:A.h-2})}f=new b("mceEventBlocker");f.update();x=h.getXY();q=h.getSize();s=g.x+x.x-A.x;r=g.y+x.y-A.y;d.add(f.get(),"div",{id:"mcePlaceHolder","class":"mcePlaceHolder",style:{left:s,top:r,width:q.w,height:q.h}});F=new b("mcePlaceHolder")}z=a.add(C,"mousemove",function(w){var p,H,t;D();p=w.screenX-j;H=w.screenY-i;switch(E){case"ResizeW":m=p;n=0-p;break;case"ResizeE":n=p;break;case"ResizeN":case"ResizeNW":case"ResizeNE":if(E=="ResizeNW"){m=p;n=0-p}else{if(E=="ResizeNE"){n=p}}k=H;B=0-H;break;case"ResizeS":case"ResizeSW":case"ResizeSE":if(E=="ResizeSW"){m=p;n=0-p}else{if(E=="ResizeSE"){n=p}}B=H;break;case"mceMove":m=p;k=H;break}if(n<(t=l.features.min_width-q.w)){if(m!==0){m+=n-t}n=t}if(B<(t=l.features.min_height-q.h)){if(k!==0){k+=B-t}B=t}n=Math.min(n,l.features.max_width-q.w);B=Math.min(B,l.features.max_height-q.h);m=Math.max(m,A.x-(s+A.x));k=Math.max(k,A.y-(r+A.y));m=Math.min(m,(A.w+A.x)-(s+q.w+A.x));k=Math.min(k,(A.h+A.y)-(r+q.h+A.y));if(m+k!==0){if(s+m<0){m=0}if(r+k<0){k=0}F.moveTo(s+m,r+k)}if(n+B!==0){F.resizeTo(q.w+n,q.h+B)}return a.cancel(w)});return a.cancel(G)},resizeBy:function(g,h,i){var f=this.windows[i];if(f){f.element.resizeBy(g,h);f.iframeElement.resizeBy(g,h)}},close:function(j,l){var h=this,g,k=d.doc,f=0,i,l;l=h._findId(l||j);if(!h.windows[l]){h.parent(j);return}h.count--;if(h.count==0){d.remove("mceModalBlocker")}if(g=h.windows[l]){h.onClose.dispatch(h);a.remove(k,"mousedown",g.mousedownFunc);a.remove(k,"click",g.clickFunc);a.clear(l);a.clear(l+"_ifr");d.setAttrib(l+"_ifr","src",'javascript:""');g.element.remove();delete h.windows[l];e(h.windows,function(m){if(m.zIndex>f){i=m;f=m.zIndex}});if(i){h.focus(i.id)}}},setTitle:function(f,g){var h;f=this._findId(f);if(h=d.get(f+"_title")){h.innerHTML=d.encode(g)}},alert:function(g,f,j){var i=this,h;h=i.open({title:i,type:"alert",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},confirm:function(g,f,j){var i=this,h;h=i.open({title:i,type:"confirm",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},_findId:function(f){var g=this;if(typeof(f)=="string"){return f}e(g.windows,function(h){var i=d.get(h.id+"_ifr");if(i&&f==i.contentWindow){f=h.id;return false}});return f},_fixIELayout:function(i,h){var f,g;if(!tinymce.isIE6){return}e(["n","s","w","e","nw","ne","sw","se"],function(j){var k=d.get(i+"_resize_"+j);d.setStyles(k,{width:h?k.clientWidth:"",height:h?k.clientHeight:"",cursor:d.getStyle(k,"cursor",1)});d.setStyle(i+"_bottom","bottom","-1px");k=0});if(f=this.windows[i]){f.element.hide();f.element.show();e(d.select("div,a",i),function(k,j){if(k.currentStyle.backgroundImage!="none"){g=new Image();g.src=k.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")}});d.get(i).style.filter=""}}});tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})();