kitsune 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rake'
|
|
2
2
|
|
3
3
|
gem_spec = Gem::Specification.new do |gem_spec|
|
4
4
|
gem_spec.name = "kitsune"
|
5
|
-
gem_spec.version = "0.0.
|
5
|
+
gem_spec.version = "0.0.18"
|
6
6
|
gem_spec.summary = "Integrated Rails Content Management System."
|
7
7
|
gem_spec.email = "matt@toastyapps.com"
|
8
8
|
gem_spec.homepage = "http://github.com/toastyapps/kitsune"
|
@@ -27,7 +27,7 @@ class KitsuneGenerator < Rails::Generator::Base
|
|
27
27
|
|
28
28
|
|
29
29
|
m.directory "public/javascripts/kitsune/"
|
30
|
-
%w[nicEdit.js jquery.js kitsune_jquery.js].each do |js|
|
30
|
+
%w[nicEdit.js jquery.js kitsune_jquery.js upload_maker.js].each do |js|
|
31
31
|
m.file "javascripts/#{js}", "public/javascripts/kitsune/#{js}"
|
32
32
|
end
|
33
33
|
m.directory "public/stylesheets/kitsune/"
|
@@ -4,7 +4,7 @@ $.fn.upload_maker = function(destination) {
|
|
4
4
|
var id = $(this).attr('id');
|
5
5
|
var image_input_id = id + '_image_url';
|
6
6
|
//write the iframe
|
7
|
-
$(this).before('<iframe src="'+destination+'
|
7
|
+
$(this).before('<iframe style="height: 1em;width:650px" src="'+destination+'&destination=' + image_input_id +'" frameborder="0"></iframe>');
|
8
8
|
//write hidden input
|
9
9
|
$(this).after('<input id="' + image_input_id +'" name="' + image_input_id +'" style="position:absolute;left:-9999em" />');
|
10
10
|
$('#' + image_input_id).focus(function() {
|
data/lib/kitsune.rb
CHANGED