This repository has been archived by the owner on Aug 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed jqmodal stuff for content section editing.
- Loading branch information
jamescook
committed
Sep 17, 2008
1 parent
fc66871
commit be4d22e
Showing
9 changed files
with
75 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
jQuery(document).ready(function() | ||
{ | ||
jQuery("div.page_controls ul li.direction a").click(function() | ||
{ | ||
var direction; | ||
|
||
return false; | ||
}); | ||
|
||
// Clone a given list item, hide it and insert it above the specified <li>. | ||
function add_new_list_item(list_item) | ||
{ | ||
|
||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,2 @@ | ||
// Place your application-specific JavaScript functions and classes here | ||
// This file is automatically included by javascript_include_tag :defaults | ||
|
||
|
||
// TESTING. I know this stuff doesn't go here | ||
jQuery(document).ready(function() | ||
{ | ||
jQuery("div.page_controls ul li.direction a").click(function() | ||
{ | ||
var easing; | ||
var link = jQuery(this); | ||
var li = link.parents('li'); | ||
var parent_li = li.parents('li:first'); | ||
|
||
var above = parent_li.prevAll('li'); | ||
var below = parent_li.nextAll('li'); | ||
var cur_offset = link.parents('li.main_node').offset(); | ||
|
||
|
||
if( parent_li.hasClass('up') ) | ||
{ | ||
if( above.length > 0 ) | ||
{ | ||
easing = "+=25px"; | ||
} | ||
|
||
} else { | ||
if( below.length > 0 ) | ||
{ | ||
easing = "-=25px"; | ||
} | ||
} | ||
|
||
if( easing !== undefined) | ||
{ | ||
var container = jQuery("yui-g"); | ||
li.css("top", cur_offset.top); | ||
li.css("left", cur_offset.left); | ||
var last_position = li.css("position"); | ||
li.css("position", "fixed"); | ||
//container.animate({"height": easing}, "fast", "swing" }); | ||
li.animate({"top": easing}, "slow", "swing", function() { li.css("position", last_position)}); | ||
} | ||
|
||
return false; | ||
}); | ||
|
||
// Clone a given list item, hide it and insert it above the specified <li>. | ||
function add_new_list_item(list_item) | ||
{ | ||
|
||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
vendor/plugins/ansuz_content_section/app/views/content_sections/_edit.html.erb
This file was deleted.
Oops, something went wrong.
8 changes: 5 additions & 3 deletions
8
vendor/plugins/ansuz_content_section/app/views/content_sections/edit.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<h1>Editing Content Section</h1> | ||
<% form_for :content_section, :url => content_section_path(@content_section), :html => { :method => :put } do -%> | ||
<% remote_form_for :content_section, @content_section, :url => content_section_path(@content_section), :html => { :method => :put }, :before => fckeditor_before_js(:content_section, :contents) do |f| -%> | ||
<%= f.text_field(:name) -%><br /> | ||
<%= fckeditor_textarea(:content_section, :contents, :toolbarSet => 'Simple', :width => '100%', :height => '400px') -%><br /> | ||
<%= submit_tag("Update Content Section") -%> | ||
<%= fckeditor_textarea(:content_section, :contents, :toolbarSet => 'Simple', :width => '100%', :height => '400px', :ajax => true) -%><br /> | ||
<%= submit_tag("Update Content Section", :id => 'close_modal_and_flash') -%> | ||
<% end -%> | ||
<div class="clear"></div> | ||
<%= link_to("Back", :back)%> |