kiteditor 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/{lib/generators/mercury/install/images/templates → app/controllers/mercury}/images_controller.rb +0 -0
- data/{lib/generators/mercury/install/images/templates/ar_paperclip_image.rb → app/models/mercury/image.rb} +0 -7
- data/app/views/layouts/mercury.html.erb +20 -10
- data/app/views/mercury/modals/character.html +1 -1
- data/app/views/mercury/modals/htmleditor.html +7 -3
- data/app/views/mercury/modals/link.html +51 -37
- data/app/views/mercury/modals/media.html +0 -102
- data/app/views/mercury/modals/table.html +73 -79
- data/app/views/mercury/panels/snippets.html +1 -6
- data/app/views/mercury/snippets/example/options.html.erb +27 -23
- data/{lib/generators/mercury/install/images/templates/ar_paperclip_image_migration.rb → db/migrate/20110526035601_create_mercury_images.rb} +0 -0
- data/features/loading/loading.feature +2 -5
- data/features/loading/user_interface.feature +7 -9
- data/features/regions/{full → editable}/advanced_editing.feature +0 -0
- data/features/regions/editable/basic_editing.feature +195 -0
- data/features/regions/{full → editable}/inserting_links.feature +19 -20
- data/features/regions/{full → editable}/inserting_media.feature +18 -36
- data/features/regions/{full → editable}/inserting_snippets.feature +18 -28
- data/features/regions/{full → editable}/inserting_special_characters.feature +2 -2
- data/features/regions/editable/inserting_tables.feature +109 -0
- data/features/regions/{full → editable}/pasting.feature +0 -0
- data/features/regions/{full → editable}/uploading_images.feature +0 -0
- data/features/regions/{markdown → markupable}/advanced_editing.feature +0 -0
- data/features/regions/{markdown → markupable}/basic_editing.feature +0 -0
- data/features/regions/{markdown → markupable}/inserting_links.feature +0 -0
- data/features/regions/{markdown → markupable}/inserting_media.feature +0 -0
- data/features/regions/{markdown → markupable}/inserting_snippets.feature +0 -0
- data/features/regions/{markdown → markupable}/inserting_special_characters.feature +0 -0
- data/features/regions/{markdown → markupable}/inserting_tables.feature +0 -0
- data/features/regions/{image → markupable}/uploading_images.feature +0 -0
- data/features/regions/{snippets → snippetable}/advanced_editing.feature +0 -0
- data/features/regions/{snippets → snippetable}/basic_editing.feature +0 -0
- data/features/regions/{snippets → snippetable}/inserting_snippets.feature +0 -0
- data/features/saving/saving.feature +8 -8
- data/features/step_definitions/mercury_steps.rb +438 -1
- data/features/support/env.rb +1 -11
- data/{lib/mercury/cucumber → features}/support/mercury_contents.rb +3 -3
- data/{lib/mercury/cucumber → features}/support/mercury_selectors.rb +20 -0
- data/features/support/selectors.rb +0 -23
- data/lib/generators/mercury/install/install_generator.rb +23 -12
- data/lib/generators/mercury/install/{images/templates → templates}/mongoid_paperclip_image.rb +0 -0
- data/lib/mercury/authentication.rb +0 -1
- data/lib/mercury-rails.rb +2 -1
- data/spec/javascripts/mercury/{dialog_spec.coffee → dialog_spec.js.coffee} +12 -11
- data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +3 -2
- data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +4 -3
- data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +3 -2
- data/spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee +3 -2
- data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +3 -2
- data/spec/javascripts/mercury/lightview_spec.js.coffee +142 -180
- data/spec/javascripts/mercury/mercury_spec.js.coffee +13 -19
- data/spec/javascripts/mercury/modal_spec.js.coffee +148 -192
- data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +5 -4
- data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +3 -2
- data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +34 -107
- data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +26 -106
- data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +3 -2
- data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +40 -50
- data/spec/javascripts/mercury/page_editor_spec.js.coffee +80 -124
- data/spec/javascripts/mercury/palette_spec.js.coffee +5 -4
- data/spec/javascripts/mercury/panel_spec.js.coffee +12 -9
- data/spec/javascripts/mercury/region_spec.js.coffee +17 -22
- data/spec/javascripts/mercury/regions/{full_spec.js.coffee → editable_spec.js.coffee} +28 -26
- data/spec/javascripts/mercury/regions/{markdown_spec.js.coffee → markupable_spec.js.coffee} +34 -32
- data/spec/javascripts/mercury/regions/{snippets_spec.js.coffee → snippetable_spec.js.coffee} +55 -54
- data/spec/javascripts/mercury/select_spec.js.coffee +5 -4
- data/spec/javascripts/mercury/snippet_spec.js.coffee +16 -92
- data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +16 -31
- data/spec/javascripts/mercury/statusbar_spec.js.coffee +10 -9
- data/spec/javascripts/mercury/table_editor_spec.js.coffee +2 -1
- data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +9 -7
- data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +26 -55
- data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +13 -13
- data/spec/javascripts/mercury/toolbar_spec.js.coffee +14 -43
- data/spec/javascripts/mercury/tooltip_spec.js.coffee +2 -1
- data/spec/javascripts/mercury/uploader_spec.js.coffee +33 -47
- data/spec/javascripts/{support/event_simulation.js → spec_helper.js} +2 -0
- data/spec/javascripts/{fixtures → templates}/mercury/dialog.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/dialogs/backcolor.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/dialogs/forecolor.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/dialogs/formatblock.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/dialogs/snippetpanel.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/dialogs/style.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/lightview.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/modal.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/modals/htmleditor.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/modals/insertcharacter.html +0 -0
- data/spec/javascripts/templates/mercury/modals/insertlink.html +30 -0
- data/spec/javascripts/templates/mercury/modals/insertmedia.html +35 -0
- data/spec/javascripts/{fixtures → templates}/mercury/modals/insertsnippet.html +0 -0
- data/spec/javascripts/templates/mercury/modals/inserttable.html +27 -0
- data/spec/javascripts/{fixtures → templates}/mercury/page_editor.html +4 -4
- data/spec/javascripts/{fixtures → templates}/mercury/palette.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/panel.html +0 -0
- data/spec/javascripts/templates/mercury/region.html +2 -0
- data/spec/javascripts/templates/mercury/regions/editable.html +3 -0
- data/spec/javascripts/templates/mercury/regions/snippetable.html +4 -0
- data/spec/javascripts/{fixtures → templates}/mercury/select.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/snippet.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/snippet_toolbar.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/statusbar.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/table_editor.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/toolbar.button.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/toolbar.button_group.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/toolbar.expander.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/toolbar.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/tooltip.html +0 -0
- data/spec/javascripts/{fixtures → templates}/mercury/uploader.html +0 -0
- data/{app → vendor}/assets/images/mercury/button.png +0 -0
- data/{app → vendor}/assets/images/mercury/close.png +0 -0
- data/{app → vendor}/assets/images/mercury/loading-dark.gif +0 -0
- data/{app → vendor}/assets/images/mercury/loading-light.gif +0 -0
- data/{app → vendor}/assets/images/mercury/missing-image.png +0 -0
- data/{app → vendor}/assets/images/mercury/search-icon.png +0 -0
- data/{app → vendor}/assets/images/mercury/temp-logo.png +0 -0
- data/{app/assets/javascripts → vendor/assets/javascripts/mercury/dependencies}/jquery-1.7.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dependencies/jquery.additions.js +13 -103
- data/{app → vendor}/assets/javascripts/mercury/dependencies/jquery.htmlClean.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dependencies/liquidmetal.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dependencies/showdown.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dialog.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dialogs/backcolor.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dialogs/forecolor.js.coffee +1 -1
- data/{app → vendor}/assets/javascripts/mercury/dialogs/formatblock.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee +1 -1
- data/{app → vendor}/assets/javascripts/mercury/dialogs/style.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/finalize.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/history_buffer.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/lightview.js.coffee +17 -38
- data/{features/regions/markdown/uploading_images.feature → vendor/assets/javascripts/mercury/locales/da.locale.js.coffee} +0 -0
- data/{app → vendor}/assets/javascripts/mercury/locales/de.locale.js.coffee +10 -4
- data/{app → vendor}/assets/javascripts/mercury/locales/es.locale.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/example.local.js.coffee +5 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/fr.locale.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/it.locale.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/ko.local.js.coffee +10 -4
- data/{app → vendor}/assets/javascripts/mercury/locales/nl.locale.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/pt.locale.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/sv.local.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +9 -3
- data/{app → vendor}/assets/javascripts/mercury/mercury.js.coffee +1 -10
- data/{app → vendor}/assets/javascripts/mercury/modal.js.coffee +40 -62
- data/{app → vendor}/assets/javascripts/mercury/modals/htmleditor.js.coffee +2 -3
- data/{app → vendor}/assets/javascripts/mercury/modals/insertcharacter.js.coffee +0 -1
- data/{app → vendor}/assets/javascripts/mercury/modals/insertsnippet.js.coffee +0 -2
- data/vendor/assets/javascripts/mercury/modals/inserttable.js.coffee +54 -0
- data/{app → vendor}/assets/javascripts/mercury/native_extensions.js.coffee +6 -0
- data/{app → vendor}/assets/javascripts/mercury/page_editor.js.coffee +50 -84
- data/{app → vendor}/assets/javascripts/mercury/palette.js.coffee +1 -1
- data/{app → vendor}/assets/javascripts/mercury/panel.js.coffee +2 -3
- data/{app → vendor}/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee +2 -2
- data/{app → vendor}/assets/javascripts/mercury/plugins/save_as_xml/plugin.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/region.js.coffee +17 -18
- data/{app/assets/javascripts/mercury/regions/full.js.coffee → vendor/assets/javascripts/mercury/regions/editable.js.coffee} +31 -41
- data/{app/assets/javascripts/mercury/regions/markdown.js.coffee → vendor/assets/javascripts/mercury/regions/markupable.js.coffee} +24 -29
- data/{app → vendor}/assets/javascripts/mercury/regions/simple.js.coffee +54 -11
- data/{app/assets/javascripts/mercury/regions/snippets.js.coffee → vendor/assets/javascripts/mercury/regions/snippetable.js.coffee} +9 -10
- data/{app → vendor}/assets/javascripts/mercury/select.js.coffee +1 -1
- data/{app → vendor}/assets/javascripts/mercury/snippet_toolbar.js.coffee +6 -19
- data/{app → vendor}/assets/javascripts/mercury/statusbar.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/support/history.js +0 -0
- data/{app → vendor}/assets/javascripts/mercury/table_editor.js.coffee +0 -16
- data/{app → vendor}/assets/javascripts/mercury/toolbar.button.js.coffee +30 -45
- data/{app → vendor}/assets/javascripts/mercury/toolbar.button_group.js.coffee +2 -2
- data/{app → vendor}/assets/javascripts/mercury/toolbar.expander.js.coffee +4 -4
- data/{app → vendor}/assets/javascripts/mercury/toolbar.js.coffee +6 -10
- data/{app → vendor}/assets/javascripts/mercury/tooltip.js.coffee +0 -0
- data/{app → vendor}/assets/javascripts/mercury/uploader.js.coffee +19 -37
- data/{app → vendor}/assets/javascripts/mercury.js +87 -60
- data/vendor/assets/javascripts/mercury_loader.js +193 -0
- data/vendor/assets/javascripts/mercury_overrides.js +6 -0
- data/{app → vendor}/assets/stylesheets/mercury/all_images.css.erb +2 -6
- data/{app → vendor}/assets/stylesheets/mercury/dialog.css +8 -21
- data/{app → vendor}/assets/stylesheets/mercury/lightview.css +56 -6
- data/vendor/assets/stylesheets/mercury/mercury.css +151 -0
- data/{app → vendor}/assets/stylesheets/mercury/modal.css +32 -15
- data/{app → vendor}/assets/stylesheets/mercury/statusbar.css +0 -0
- data/{app → vendor}/assets/stylesheets/mercury/toolbar.css +1 -4
- data/{app → vendor}/assets/stylesheets/mercury/tooltip.css +0 -0
- data/{app → vendor}/assets/stylesheets/mercury/uploader.css +4 -4
- data/{app → vendor}/assets/stylesheets/mercury.css +5 -1
- data/vendor/assets/stylesheets/mercury_overrides.css +17 -0
- metadata +197 -367
- data/POST_INSTALL +0 -21
- data/app/assets/images/mercury/default-snippet.png +0 -0
- data/app/assets/images/mercury/toolbar/editable/buttons.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/_expander.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/action.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/preview.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/redo.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/save.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/snippetpanel.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/tools.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/undo.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/user.png +0 -0
- data/app/assets/images/mercury/toolbar/snippets/buttons.png +0 -0
- data/app/assets/javascripts/mercury/locales/ar.locale.js.coffee +0 -201
- data/app/assets/javascripts/mercury/locales/da.locale.js.coffee +0 -208
- data/app/assets/javascripts/mercury/locales/hu.locale.js.coffee +0 -209
- data/app/assets/javascripts/mercury/locales/pl.locale.js.coffee +0 -213
- data/app/assets/javascripts/mercury/locales/ru.locale.js.coffee +0 -200
- data/app/assets/javascripts/mercury/locales/uk.locale.js.coffee +0 -200
- data/app/assets/javascripts/mercury/locales/zh.local.js.coffee +0 -203
- data/app/assets/javascripts/mercury/mercury-compiled.js +0 -10720
- data/app/assets/javascripts/mercury/modals/insertlink.js.coffee +0 -152
- data/app/assets/javascripts/mercury/modals/insertmedia.js.coffee +0 -132
- data/app/assets/javascripts/mercury/modals/inserttable.js.coffee +0 -68
- data/app/assets/javascripts/mercury/regions/image.js.coffee +0 -93
- data/app/assets/javascripts/mercury/snippet.js.coffee +0 -136
- data/app/assets/stylesheets/_mercury-bootstrap-overrides.scss +0 -61
- data/app/assets/stylesheets/_mercury-sass.scss +0 -33
- data/app/assets/stylesheets/mercury/bootstrap-ish.css +0 -1367
- data/app/assets/stylesheets/mercury/bootstrap-overrides.css +0 -61
- data/app/assets/stylesheets/mercury/mercury.css +0 -43
- data/app/helpers/mercury_helper.rb +0 -7
- data/app/views/layouts/mercury.html.haml +0 -19
- data/app/views/layouts/mercury.html.slim +0 -19
- data/app/views/mercury/snippets/no_options/preview.html.erb +0 -1
- data/config/routes.rb +0 -9
- data/features/generators/authentication.feature +0 -10
- data/features/generators/images.feature +0 -41
- data/features/generators/install.feature +0 -21
- data/features/regions/full/basic_editing.feature +0 -198
- data/features/regions/full/inserting_tables.feature +0 -109
- data/features/regions/simple/basic_editing.feature +0 -5
- data/features/step_definitions/custom_web_steps.rb +0 -22
- data/features/step_definitions/generator_steps.rb +0 -23
- data/features/support/aruba.rb +0 -28
- data/lib/generators/mercury/install/authentication/authentication_generator.rb +0 -17
- data/lib/generators/mercury/install/images/images_generator.rb +0 -47
- data/lib/mercury/cucumber/step_definitions/mercury_steps.rb +0 -408
- data/lib/mercury/cucumber/step_definitions.rb +0 -13
- data/lib/mercury/engine.rb +0 -19
- data/lib/mercury/rails.rb +0 -5
- data/lib/mercury/version.rb +0 -3
- data/spec/dummy/Rakefile +0 -7
- data/spec/dummy/app/assets/javascripts/application.js +0 -0
- data/spec/dummy/app/assets/javascripts/prototype.js +0 -6082
- data/spec/dummy/app/assets/stylesheets/application.css.scss +0 -110
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/app/views/layouts/mercury.html.erb +0 -28
- data/spec/dummy/config/application.rb +0 -58
- data/spec/dummy/config/boot.rb +0 -10
- data/spec/dummy/config/database.yml +0 -10
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -37
- data/spec/dummy/config/environments/production.rb +0 -67
- data/spec/dummy/config/environments/test.rb +0 -37
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/inflections.rb +0 -15
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/initializers/teabag.rb +0 -9
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/config/routes.rb +0 -5
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/db/.gitkeep +0 -0
- data/spec/dummy/public/500.html +0 -25
- data/spec/dummy/public/blank.html +0 -1
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/images/bunny.gif +0 -0
- data/spec/dummy/public/images/bunny2.jpg +0 -0
- data/spec/dummy/public/index.html +0 -279
- data/spec/dummy/script/rails +0 -6
- data/spec/javascripts/fixtures/mercury/modals/insertlink.html +0 -67
- data/spec/javascripts/fixtures/mercury/modals/insertmedia.html +0 -87
- data/spec/javascripts/fixtures/mercury/modals/inserttable.html +0 -73
- data/spec/javascripts/fixtures/mercury/region.html +0 -6
- data/spec/javascripts/fixtures/mercury/regions/full.html +0 -1
- data/spec/javascripts/fixtures/mercury/regions/image.html +0 -1
- data/spec/javascripts/fixtures/mercury/regions/markdown.html +0 -1
- data/spec/javascripts/fixtures/mercury/regions/simple.html +0 -1
- data/spec/javascripts/fixtures/mercury/regions/snippets.html +0 -4
- data/spec/javascripts/mercury/regions/image_spec.js.coffee +0 -33
- data/spec/javascripts/mercury/regions/simple_spec.js.coffee +0 -32
- data/spec/javascripts/spec_helper.coffee +0 -4
- data/spec/teabag_env.rb +0 -32
@@ -74,8 +74,6 @@ Mercury.I18n['pt'] =
|
|
74
74
|
"Mercury.PageEditor failed to load: %s\n\nPlease try refreshing.": "Mercury.PageEditor não pôde carregar: %s\n\nPor favor, recarregue a página."
|
75
75
|
"Region type is malformed, no data-type provided, or \"%s\" is unknown for the \"%s\" region.": "A região não digitada corretamente, não foi definido um 'data-type', ou \"%s\" é desconhecido na região de \"%s\"."
|
76
76
|
"Mercury was unable to save to the url: %s": ""
|
77
|
-
"invalid": "inválido"
|
78
|
-
"can't be blank": "não pode estar em branco"
|
79
77
|
# Confirmations
|
80
78
|
"You have unsaved changes. Are you sure you want to leave without saving them first?": "Você modificou esta página. Quer sair sem salvar seu trabalho?"
|
81
79
|
|
@@ -112,6 +110,10 @@ Mercury.I18n['pt'] =
|
|
112
110
|
"Size: %s": "Tamanho: \"%s\"."
|
113
111
|
"Type: %s": "Tipo: \"%s\"."
|
114
112
|
|
113
|
+
# Inserting Media
|
114
|
+
"Error: The provided youtube share url was invalid.": "Erro: Link inválido no youtube."
|
115
|
+
"Error: The provided vimeo url was invalid.": "Erro: Link inválido no vimeo."
|
116
|
+
|
115
117
|
# Statusbar
|
116
118
|
"Path:": "Caminho"
|
117
119
|
|
@@ -134,11 +136,12 @@ Mercury.I18n['pt'] =
|
|
134
136
|
"Popup Window (javascript new window popup)": "Popup Window (Janela feia em javascript)"
|
135
137
|
"Popup Width": "Largura do popup"
|
136
138
|
"Popup Height": "Altura do popup"
|
139
|
+
"Insert Link": "Inserir Link"
|
137
140
|
|
138
141
|
# Insert Media Modal (media.html)
|
139
142
|
"Images": "Imagens"
|
140
143
|
"Videos": "Vídeos"
|
141
|
-
"YouTube URL": "Link do Youtube"
|
144
|
+
"YouTube Share URL": "Link do Youtube"
|
142
145
|
"Vimeo URL": "Link do Vimeo"
|
143
146
|
"Alignment": "Alinhamento"
|
144
147
|
"None": "Nenhum"
|
@@ -161,8 +164,11 @@ Mercury.I18n['pt'] =
|
|
161
164
|
"Columns": "Colunas"
|
162
165
|
"Row Span": "Células horizontais"
|
163
166
|
"Column Span": "Células verticais"
|
167
|
+
"Options": "Opções"
|
168
|
+
"Alignment": "Alinhamento"
|
164
169
|
"Border": "Borda"
|
165
170
|
"Spacing": "Espaçamento"
|
171
|
+
"Insert Table": "Inserir Tabela"
|
166
172
|
|
167
173
|
# HTML Editor Modal (htmleditor.html)
|
168
174
|
"HTML Editor": "Editor HTML"
|
@@ -74,8 +74,6 @@ Mercury.I18n['sv'] =
|
|
74
74
|
"Mercury.PageEditor failed to load: %s\n\nPlease try refreshing.": "Mercury.PageEditor misslyckades att ladda: %s\n\nVänligen försök att ladda om sidan."
|
75
75
|
"Region type is malformed, no data-type provided, or \"%s\" is unknown for the \"%s\" region.": "Regionstyp är felaktigt formaterad, ingen datatyp angavs, eller \"%s\" är okänt för \"%s\" regionen."
|
76
76
|
"Mercury was unable to save to the url: %s": "Mercury kunde inte spara till adressen: %s"
|
77
|
-
"invalid": "ogiltig"
|
78
|
-
"can't be blank": "kan inte vara tomt"
|
79
77
|
# Confirmations
|
80
78
|
"You have unsaved changes. Are you sure you want to leave without saving them first?": "Du har osparade ändringar. Är du säker på att du vill lämna sidan utan att spara dem först?"
|
81
79
|
|
@@ -112,6 +110,10 @@ Mercury.I18n['sv'] =
|
|
112
110
|
"Size: %s": "Storlek: %s"
|
113
111
|
"Type: %s": "Typ: %s"
|
114
112
|
|
113
|
+
# Inserting Media
|
114
|
+
"Error: The provided youtube share url was invalid.": "Fel: Den angivna delningsadressen för Youtube är felaktig."
|
115
|
+
"Error: The provided vimeo url was invalid.": "Fel: Den angivna Vimeo-adressen är felaktig."
|
116
|
+
|
115
117
|
# Statusbar
|
116
118
|
"Path:": "Sökväg:"
|
117
119
|
|
@@ -134,11 +136,12 @@ Mercury.I18n['sv'] =
|
|
134
136
|
"Popup Window (javascript new window popup)": "Popupfönster (javascript nytt fönster)"
|
135
137
|
"Popup Width": "Bredd för popup"
|
136
138
|
"Popup Height": "Höjd för popup"
|
139
|
+
"Insert Link": "Infoga länk"
|
137
140
|
|
138
141
|
# Insert Media Modal (media.html)
|
139
142
|
"Images": "Bilder"
|
140
143
|
"Videos": "Video"
|
141
|
-
"YouTube URL": "YouTube-URL"
|
144
|
+
"YouTube Share URL": "YouTube delnings-URL"
|
142
145
|
"Vimeo URL": "Vimeo-URL"
|
143
146
|
"Alignment": "Justering"
|
144
147
|
"None": "Ingen"
|
@@ -161,8 +164,11 @@ Mercury.I18n['sv'] =
|
|
161
164
|
"Columns": "Kolumner"
|
162
165
|
"Row Span": "Rad-vidd"
|
163
166
|
"Column Span": "Kolumn-vidd"
|
167
|
+
"Options": "Inställningar"
|
168
|
+
"Alignment": "Justering"
|
164
169
|
"Border": "Ram"
|
165
170
|
"Spacing": "Mellanrum"
|
171
|
+
"Insert Table": "Infoga tabell"
|
166
172
|
|
167
173
|
# HTML Editor Modal (htmleditor.html)
|
168
174
|
"HTML Editor": "HTML-redigerare"
|
@@ -74,8 +74,6 @@ Mercury.I18n['swedish_chef'] =
|
|
74
74
|
"Mercury.PageEditor failed to load: %s\n\nPlease try refreshing.": "Mercury.PegeEdeetur feeeled tu lued: %s\n\nPleese-a try reffresheeng."
|
75
75
|
"Region type is malformed, no data-type provided, or \"%s\" is unknown for the \"%s\" region.": "Regeeun type-a is melffurmed, nu deta-type-a prufeeded, oor \"%s\" is unknoon fur zee \"%s\" regeeun."
|
76
76
|
"Mercury was unable to save to the url: %s": "Mercury ves uneble-a tu sefe-a tu zee url: %s"
|
77
|
-
"invalid": "infeleed"
|
78
|
-
"can't be blank": "cun't be-a blunk"
|
79
77
|
# Confirmations
|
80
78
|
"You have unsaved changes. Are you sure you want to leave without saving them first?": "Yuoo hefe-a unsefed chunges. Ere-a yuoo soore-a yuoo vunt tu leefe-a veethuoot sefeeng zeem furst?"
|
81
79
|
|
@@ -112,6 +110,10 @@ Mercury.I18n['swedish_chef'] =
|
|
112
110
|
"Size: %s": "Seeze-a: %s"
|
113
111
|
"Type: %s": "Type-a: %s"
|
114
112
|
|
113
|
+
# Inserting Media
|
114
|
+
"Error: The provided youtube share url was invalid.": "Irrur: Zee prufeeded youtube shere-a url ves infeleed."
|
115
|
+
"Error: The provided vimeo url was invalid.": "Irrur: Zee prufeeded vimeo url ves infeleed."
|
116
|
+
|
115
117
|
# Statusbar
|
116
118
|
"Path:": "Pet:"
|
117
119
|
|
@@ -134,11 +136,12 @@ Mercury.I18n['swedish_chef'] =
|
|
134
136
|
"Popup Window (javascript new window popup)": "Pupoop Veendoo (jefescreept noo veendoo pupoop)"
|
135
137
|
"Popup Width": "Pupoop Veedt"
|
136
138
|
"Popup Height": "Pupoop Heeeght"
|
139
|
+
"Insert Link": "Insert Leenk"
|
137
140
|
|
138
141
|
# Insert Media Modal (media.html)
|
139
142
|
"Images": "Imeges"
|
140
143
|
"Videos": "Feedeus"
|
141
|
-
"YouTube URL": "YouTube URL"
|
144
|
+
"YouTube Share URL": "YouTube Shere-a URL"
|
142
145
|
"Vimeo URL": "Vimeo URL"
|
143
146
|
"Alignment": "Eleegnment"
|
144
147
|
"None": "Nune-a"
|
@@ -161,8 +164,11 @@ Mercury.I18n['swedish_chef'] =
|
|
161
164
|
"Columns": "Culoomns"
|
162
165
|
"Row Span": "Roo Spun"
|
163
166
|
"Column Span": "Culoomn Spun"
|
167
|
+
"Options": "Oopshuns"
|
168
|
+
"Alignment": "Eleegnment"
|
164
169
|
"Border": "Burder"
|
165
170
|
"Spacing": "Speceeng"
|
171
|
+
"Insert Table": "Insert Teble-a"
|
166
172
|
|
167
173
|
# HTML Editor Modal (htmleditor.html)
|
168
174
|
"HTML Editor": "HTML Ideetur"
|
@@ -34,7 +34,7 @@
|
|
34
34
|
#
|
35
35
|
@Mercury ||= {}
|
36
36
|
jQuery.extend @Mercury,
|
37
|
-
version: '0.
|
37
|
+
version: '0.3.0'
|
38
38
|
|
39
39
|
# Mercury object namespaces
|
40
40
|
Regions: Mercury.Regions || {}
|
@@ -55,14 +55,6 @@ jQuery.extend @Mercury,
|
|
55
55
|
jQuery(window).on("mercury:#{eventName}", callback)
|
56
56
|
|
57
57
|
|
58
|
-
off: (eventName, callback) ->
|
59
|
-
jQuery(window).off("mercury:#{eventName}", callback)
|
60
|
-
|
61
|
-
|
62
|
-
one: (eventName, callback) ->
|
63
|
-
jQuery(window).one("mercury:#{eventName}", callback)
|
64
|
-
|
65
|
-
|
66
58
|
trigger: (eventName, options) ->
|
67
59
|
Mercury.log(eventName, options)
|
68
60
|
jQuery(window).trigger("mercury:#{eventName}", options)
|
@@ -100,7 +92,6 @@ jQuery.extend @Mercury,
|
|
100
92
|
locale: ->
|
101
93
|
return Mercury.determinedLocale if Mercury.determinedLocale
|
102
94
|
if Mercury.config.localization.enabled
|
103
|
-
debugger
|
104
95
|
locale = []
|
105
96
|
if navigator.language && (locale = navigator.language.toString().split('-')).length
|
106
97
|
topLocale = Mercury.I18n[locale[0]] || {}
|
@@ -1,27 +1,19 @@
|
|
1
1
|
@Mercury.modal = (url, options = {}) ->
|
2
|
-
|
3
|
-
|
4
|
-
return instance
|
2
|
+
Mercury.modal.show(url, options)
|
3
|
+
return Mercury.modal
|
5
4
|
|
6
|
-
|
7
|
-
|
8
|
-
constructor: (@url, @options = {}) ->
|
9
|
-
|
10
|
-
|
11
|
-
show: (url = null, options = null) ->
|
12
|
-
@url = url || @url
|
13
|
-
@options = options || @options
|
14
|
-
@options.minWidth ||= 400
|
15
|
-
@options.ujsHandling = true unless @options.ujsHandling == false
|
5
|
+
jQuery.extend Mercury.modal,
|
6
|
+
minWidth: 500
|
16
7
|
|
8
|
+
show: (@url, @options = {}) ->
|
17
9
|
Mercury.trigger('focus:window')
|
18
|
-
@
|
10
|
+
@initialize()
|
19
11
|
if @visible then @update() else @appear()
|
20
12
|
if @options.content
|
21
|
-
setTimeout
|
13
|
+
setTimeout 500, => @loadContent(@options.content)
|
22
14
|
|
23
15
|
|
24
|
-
|
16
|
+
initialize: ->
|
25
17
|
return if @initialized
|
26
18
|
@build()
|
27
19
|
@bindEvents()
|
@@ -29,23 +21,20 @@ class @Mercury.Modal
|
|
29
21
|
|
30
22
|
|
31
23
|
build: ->
|
32
|
-
@element = jQuery('
|
33
|
-
@
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
@element.append('<div class="mercury-modal-content-container"><div class="mercury-modal-content"></div></div>')
|
39
|
-
|
40
|
-
@overlay = jQuery('<div>', {class: 'mercury-modal-overlay'})
|
41
|
-
|
42
|
-
@element.appendTo(jQuery(@options.appendTo).get(0) ? 'body')
|
43
|
-
@overlay.appendTo(jQuery(@options.appendTo).get(0) ? 'body')
|
44
|
-
|
24
|
+
@element = jQuery('<div>', {class: 'mercury-modal loading'})
|
25
|
+
@element.html('<h1 class="mercury-modal-title"><span></span><a>×</a></h1>')
|
26
|
+
@element.append('<div class="mercury-modal-content-container"><div class="mercury-modal-content"></div></div>')
|
27
|
+
|
28
|
+
@overlay = jQuery('<div>', {class: 'mercury-modal-overlay'})
|
29
|
+
|
45
30
|
@titleElement = @element.find('.mercury-modal-title')
|
46
31
|
@contentContainerElement = @element.find('.mercury-modal-content-container')
|
32
|
+
|
47
33
|
@contentElement = @element.find('.mercury-modal-content')
|
48
34
|
|
35
|
+
@element.appendTo(jQuery(@options.appendTo).get(0) ? 'body')
|
36
|
+
@overlay.appendTo(jQuery(@options.appendTo).get(0) ? 'body')
|
37
|
+
|
49
38
|
|
50
39
|
bindEvents: ->
|
51
40
|
Mercury.on 'refresh', => @resize(true)
|
@@ -57,13 +46,12 @@ class @Mercury.Modal
|
|
57
46
|
@titleElement.find('a').on 'click', =>
|
58
47
|
@hide()
|
59
48
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
@loadContent(content)
|
49
|
+
@element.on 'ajax:beforeSend', (event, xhr, options) =>
|
50
|
+
options.success = (content) =>
|
51
|
+
@loadContent(content)
|
64
52
|
|
65
53
|
jQuery(document).on 'keydown', (event) =>
|
66
|
-
|
54
|
+
@hide() if event.keyCode == 27 && @visible
|
67
55
|
|
68
56
|
|
69
57
|
appear: ->
|
@@ -97,16 +85,18 @@ class @Mercury.Modal
|
|
97
85
|
|
98
86
|
height = @contentElement.outerHeight() + titleHeight
|
99
87
|
|
100
|
-
width = @
|
101
|
-
height = Mercury.displayRect.fullHeight -20 if height > Mercury.displayRect.fullHeight - 20 || @options.fullHeight
|
88
|
+
width = @minWidth if width < @minWidth
|
89
|
+
height = Mercury.displayRect.fullHeight - 20 if height > Mercury.displayRect.fullHeight - 20 || @options.fullHeight
|
90
|
+
if @fix_height
|
91
|
+
height = @fix_height
|
102
92
|
|
103
93
|
@element.stop().animate {left: (Mercury.displayRect.width - width) / 2, width: width, height: height}, 200, 'easeInOutSine', =>
|
104
94
|
@contentElement.css({visibility: 'visible', display: 'block'})
|
105
95
|
if @contentPane.length
|
106
96
|
@contentElement.css({height: height - titleHeight, overflow: 'visible'})
|
107
|
-
controlHeight = if @contentControl.length then @contentControl.outerHeight()
|
108
|
-
@contentPane.css({height: height - titleHeight - controlHeight -
|
109
|
-
@contentPane.find('.mercury-display-pane').css({width: width -
|
97
|
+
controlHeight = if @contentControl.length then @contentControl.outerHeight() else 0
|
98
|
+
@contentPane.css({height: height - titleHeight - controlHeight - 40})
|
99
|
+
@contentPane.find('.mercury-display-pane').css({width: width - 40})
|
110
100
|
else
|
111
101
|
@contentElement.css({height: height - titleHeight, overflow: 'auto'})
|
112
102
|
|
@@ -121,15 +111,15 @@ class @Mercury.Modal
|
|
121
111
|
width = @element.width()
|
122
112
|
height = @element.height()
|
123
113
|
|
124
|
-
width = @
|
125
|
-
height = Mercury.displayRect.fullHeight if height > Mercury.displayRect.fullHeight || @options.fullHeight
|
114
|
+
width = @minWidth if width < @minWidth
|
115
|
+
height = Mercury.displayRect.fullHeight - 20 if height > Mercury.displayRect.fullHeight - 20 || @options.fullHeight
|
126
116
|
|
127
117
|
titleHeight = @titleElement.outerHeight()
|
128
118
|
if @contentPane && @contentPane.length
|
129
119
|
@contentElement.css({height: height - titleHeight, overflow: 'visible'})
|
130
|
-
controlHeight = if @contentControl.length then @contentControl.outerHeight()
|
131
|
-
@contentPane.css({height: height - titleHeight - controlHeight -
|
132
|
-
@contentPane.find('.mercury-display-pane').css({width: width -
|
120
|
+
controlHeight = if @contentControl.length then @contentControl.outerHeight() else 0
|
121
|
+
@contentPane.css({height: height - titleHeight - controlHeight - 40})
|
122
|
+
@contentPane.find('.mercury-display-pane').css({width: width - 40})
|
133
123
|
else
|
134
124
|
@contentElement.css({height: height - titleHeight, overflow: 'auto'})
|
135
125
|
|
@@ -153,7 +143,7 @@ class @Mercury.Modal
|
|
153
143
|
return unless @url
|
154
144
|
@element.addClass('loading')
|
155
145
|
if Mercury.preloadedViews[@url]
|
156
|
-
setTimeout(
|
146
|
+
setTimeout(10, => @loadContent(Mercury.preloadedViews[@url]))
|
157
147
|
else
|
158
148
|
jQuery.ajax @url, {
|
159
149
|
headers: Mercury.ajaxHeaders()
|
@@ -167,7 +157,7 @@ class @Mercury.Modal
|
|
167
157
|
|
168
158
|
|
169
159
|
loadContent: (data, options = null) ->
|
170
|
-
@
|
160
|
+
@initialize()
|
171
161
|
@options = options || @options
|
172
162
|
@setTitle()
|
173
163
|
@loaded = true
|
@@ -182,20 +172,11 @@ class @Mercury.Modal
|
|
182
172
|
@options.afterLoad.call(@) if @options.afterLoad
|
183
173
|
if @options.handler
|
184
174
|
if Mercury.modalHandlers[@options.handler]
|
185
|
-
|
186
|
-
Mercury.modalHandlers[@options.handler].call(@)
|
187
|
-
else
|
188
|
-
jQuery.extend(@, Mercury.modalHandlers[@options.handler])
|
189
|
-
@initialize()
|
175
|
+
Mercury.modalHandlers[@options.handler].call(@)
|
190
176
|
else if Mercury.lightviewHandlers[@options.handler]
|
191
|
-
|
192
|
-
Mercury.lightviewHandlers[@options.handler].call(@)
|
193
|
-
else
|
194
|
-
jQuery.extend(@, Mercury.lightviewHandlers[@options.handler])
|
195
|
-
@initialize()
|
177
|
+
Mercury.lightviewHandlers[@options.handler].call(@)
|
196
178
|
|
197
179
|
@element.localize(Mercury.locale()) if Mercury.config.localization.enabled
|
198
|
-
@element.find('.modal-close').on('click', @hide)
|
199
180
|
@resize()
|
200
181
|
|
201
182
|
|
@@ -205,18 +186,15 @@ class @Mercury.Modal
|
|
205
186
|
if @options.closeButton == false then closeButton.hide() else closeButton.show()
|
206
187
|
|
207
188
|
|
208
|
-
serializeForm: ->
|
209
|
-
return @element.find('form').serializeObject() || {}
|
210
|
-
|
211
|
-
|
212
189
|
reset: ->
|
213
190
|
@titleElement.find('span').html('')
|
214
191
|
@contentElement.html('')
|
215
192
|
|
216
193
|
|
217
|
-
hide:
|
194
|
+
hide: ->
|
218
195
|
return if @showing
|
219
196
|
@options = {}
|
197
|
+
@initialized = false
|
220
198
|
|
221
199
|
Mercury.trigger('focus:frame')
|
222
200
|
@element.hide()
|
@@ -1,12 +1,11 @@
|
|
1
1
|
@Mercury.modalHandlers.htmlEditor = ->
|
2
|
-
|
3
2
|
# fill the text area with the content
|
4
3
|
content = Mercury.region.content(null, true, false)
|
5
|
-
|
4
|
+
parent.frames[0].will_be_content = content
|
6
5
|
|
7
6
|
# replace the contents on form submit
|
8
7
|
@element.find('form').on 'submit', (event) =>
|
9
8
|
event.preventDefault()
|
10
|
-
value =
|
9
|
+
value = parent.frames[0].html_editor.getValue()
|
11
10
|
Mercury.trigger('action', {action: 'replaceHTML', value: value})
|
12
11
|
@hide()
|
@@ -1,5 +1,4 @@
|
|
1
1
|
@Mercury.modalHandlers.insertSnippet = ->
|
2
|
-
|
3
2
|
@element.find('form').on 'submit', (event) =>
|
4
3
|
event.preventDefault()
|
5
4
|
serializedForm = @element.find('form').serializeObject()
|
@@ -11,4 +10,3 @@
|
|
11
10
|
snippet = Mercury.Snippet.create(@options.snippetName, serializedForm)
|
12
11
|
Mercury.trigger('action', {action: 'insertSnippet', value: snippet})
|
13
12
|
@hide()
|
14
|
-
|
@@ -0,0 +1,54 @@
|
|
1
|
+
@Mercury.modalHandlers.insertTable = ->
|
2
|
+
table = @element.find('#table_display table')
|
3
|
+
|
4
|
+
# make td's selectable
|
5
|
+
table.on 'click', (event) =>
|
6
|
+
cell = jQuery(event.target)
|
7
|
+
table = cell.closest('table')
|
8
|
+
table.find('.selected').removeAttr('class')
|
9
|
+
cell.addClass('selected')
|
10
|
+
Mercury.tableEditor(table, cell, ' ')
|
11
|
+
|
12
|
+
# select the first td
|
13
|
+
firstCell = table.find('td, th').first()
|
14
|
+
firstCell.addClass('selected')
|
15
|
+
Mercury.tableEditor(table, firstCell, ' ')
|
16
|
+
|
17
|
+
# make the buttons work
|
18
|
+
@element.find('input.action').on 'click', (event) =>
|
19
|
+
action = jQuery(event.target).attr('name')
|
20
|
+
switch action
|
21
|
+
when 'insertRowBefore' then Mercury.tableEditor.addRow('before')
|
22
|
+
when 'insertRowAfter' then Mercury.tableEditor.addRow('after')
|
23
|
+
when 'deleteRow' then Mercury.tableEditor.removeRow()
|
24
|
+
when 'insertColumnBefore' then Mercury.tableEditor.addColumn('before')
|
25
|
+
when 'insertColumnAfter' then Mercury.tableEditor.addColumn('after')
|
26
|
+
when 'deleteColumn' then Mercury.tableEditor.removeColumn()
|
27
|
+
when 'increaseColspan' then Mercury.tableEditor.increaseColspan()
|
28
|
+
when 'decreaseColspan' then Mercury.tableEditor.decreaseColspan()
|
29
|
+
when 'increaseRowspan' then Mercury.tableEditor.increaseRowspan()
|
30
|
+
when 'decreaseRowspan' then Mercury.tableEditor.decreaseRowspan()
|
31
|
+
|
32
|
+
# set the alignment
|
33
|
+
@element.find('#table_alignment').on 'change', =>
|
34
|
+
table.attr({align: @element.find('#table_alignment').val()})
|
35
|
+
|
36
|
+
# set the border
|
37
|
+
@element.find('#table_border').on 'keyup', =>
|
38
|
+
table.attr({border: parseInt(@element.find('#table_border').val())})
|
39
|
+
|
40
|
+
# set the cellspacing
|
41
|
+
@element.find('#table_spacing').on 'keyup', =>
|
42
|
+
table.attr({cellspacing: parseInt(@element.find('#table_spacing').val())})
|
43
|
+
|
44
|
+
# build the table on form submission
|
45
|
+
@element.find('form').on 'submit', (event) =>
|
46
|
+
event.preventDefault()
|
47
|
+
table.find('.selected').removeAttr('class')
|
48
|
+
table.find('td, th').html('<br/>')
|
49
|
+
|
50
|
+
html = jQuery('<div>').html(table).html()
|
51
|
+
value = html.replace(/^\s+|\n/gm, '').replace(/(<\/.*?>|<table.*?>|<tbody>|<tr>)/g, '$1\n')
|
52
|
+
|
53
|
+
Mercury.trigger('action', {action: 'insertTable', value: value})
|
54
|
+
@hide()
|
@@ -47,3 +47,9 @@ Number::toBytes = ->
|
|
47
47
|
bytes /= 1024
|
48
48
|
i += 1
|
49
49
|
return if i then "#{bytes.toFixed(2)}#{['', ' kb', ' Mb', ' Gb', ' Tb', ' Pb', ' Eb'][i]}" else "#{bytes} bytes"
|
50
|
+
|
51
|
+
|
52
|
+
# make setTimeout not suck for coffeescript
|
53
|
+
window.originalSetTimeout = window.setTimeout
|
54
|
+
window.setTimeout = (arg1, arg2) ->
|
55
|
+
if typeof(arg1) == 'number' then window.originalSetTimeout(arg2, arg1) else window.originalSetTimeout(arg1, arg2)
|