grat 0.0.5 → 0.0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/grat.gemspec +1 -1
- data/public/gratfiles/application.js +2 -2
- metadata +1 -1
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
|
|
3
3
|
require 'rake'
|
4
4
|
require 'echoe'
|
5
5
|
|
6
|
-
Echoe.new('grat', '0.0.5') do |p|
|
6
|
+
Echoe.new('grat', '0.0.5.1') do |p|
|
7
7
|
p.summary = "Minimal CMS for Rack and MongoDB."
|
8
8
|
p.description = "Basic interface for making webpages with Haml and Erb. Supports nested templates."
|
9
9
|
p.url = "http://samsm.com/"
|
data/grat.gemspec
CHANGED
@@ -3,7 +3,7 @@ $(document).ready(function(){
|
|
3
3
|
// New field button + features
|
4
4
|
$('a[href=#new_field]').click(function(){
|
5
5
|
|
6
|
-
$('#new_fields').prepend("<div class='new_field'><p class='myEditableText sameaslabel'>Write the title here</p><input name='
|
6
|
+
$('#new_fields').prepend("<div class='new_field'><p class='myEditableText sameaslabel'>Write the title here</p><input name='content[new_field]' value='' /></div>");
|
7
7
|
|
8
8
|
// upon click make label editable and other junk associated with customizing the new field
|
9
9
|
$('.myEditableText').click(function(){
|
@@ -25,7 +25,7 @@ $(document).ready(function(){
|
|
25
25
|
key = input.parent().children().filter('p').text();
|
26
26
|
// need to sanitize key
|
27
27
|
sanitized_key = key.replace(/[^a-zA-Z]/g,'_').toLowerCase().replace(/[^a-z]/,'').toLowerCase()
|
28
|
-
new_name = '
|
28
|
+
new_name = 'content[' + sanitized_key + ']';
|
29
29
|
|
30
30
|
input.attr('name',new_name);
|
31
31
|
})
|