Take tinymce out of layout

This commit is contained in:
Raphael 2010-08-23 11:56:06 -07:00
parent dc1dd07720
commit 01dac4d173
4 changed files with 15 additions and 3 deletions

View file

@ -21,6 +21,7 @@ class PhotosController < ApplicationController
def new
@photo = Photo.new
render :partial => "new_photo"
end
def destroy

View file

@ -46,6 +46,9 @@ class User
options.delete(:group_id)
model_class = class_name.to_s.camelize.constantize
pp options
post = model_class.instantiate(options)
post.creator_signature = post.sign_with_key(encryption_key)
post.save

View file

@ -13,7 +13,6 @@
/= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
= javascript_include_tag 'jquery142', 'rails', 'google'
= javascript_include_tag 'tiny_mce/tiny_mce'
= javascript_include_tag 'jquery.infieldlabel', 'jquery.cycle/jquery.cycle.min.js'
= javascript_include_tag 'fancybox/jquery.fancybox-1.3.1.pack'

View file

@ -12,8 +12,9 @@
$("#add_photo_loader").fadeOut(400);
$("#photo_title_status").text("Done!");
$("#progress_report").html("Great job!");
},
$("#progress_report").html("");
resetPhotoButton
},
onStart: function(event, total){
$("#add_photo_button").html( "Uploading Photos" );
$("#add_photo_loader").fadeIn(400);
@ -26,6 +27,14 @@
});
});
function resetPhotoButton{
$("#add_photo_button").click(function (evt){
$("#new_photo_pane").html($.get("photos/ajax_new"));
$("#add_photo_button").unbind();
$("#add_photo_button").fancybox();
}
}
%h1
%span{:id=>"photo_title_status"}
Add photos to