aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/admin/blog/posts/_form.js.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/refinery/admin/blog/posts/_form.js.erb')
-rw-r--r--app/views/refinery/admin/blog/posts/_form.js.erb23
1 files changed, 0 insertions, 23 deletions
diff --git a/app/views/refinery/admin/blog/posts/_form.js.erb b/app/views/refinery/admin/blog/posts/_form.js.erb
deleted file mode 100644
index 87ad23f..0000000
--- a/app/views/refinery/admin/blog/posts/_form.js.erb
+++ /dev/null
@@ -1,23 +0,0 @@
-<script>
- (function($) {
- $(function() {
- $('#page-tabs').tabs();
- $('#copy_body_link').click(function(event) {
- // Find the WYMEditor that maps to the custom_teaser field
- var teaserTextArea = $('#blog_post_custom_teaser')[0];
- var teaserEditor = null;
- $.each(WYMeditor.INSTANCES, function(index, editor) {
- if (editor._element[0] == teaserTextArea) {
- teaserEditor = editor;
- }
- });
-
- if (teaserEditor) {
- teaserEditor.html($('#blog_post_body').attr('value'));
- }
-
- event.preventDefault();
- });
- });
- })(jQuery);
-</script>