caboose-cms 0.7.83 → 0.7.84
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/caboose/model/index_table.js +15 -3
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e26ea9684ed67352289454d78363dc87365c7304
|
|
4
|
+
data.tar.gz: 901ac00e18c77df7b38d3998e0ecaca611096536
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2fbba346db6d45291f8119d8018035bb28ec26da722ed2fd3484bbba9b203e69f4615d336b51e3628ee720b1320188eceb2d6e9f0188f7edcca71fa324aa8154
|
|
7
|
+
data.tar.gz: c625c160661a5358d143eae93a182092bf09206f8c9fa3c9c2dc86a175b27946cca9afa843eb5ade23b2efe3c87b3c19b1d35e4636680197bdfc468665eaaf51
|
|
@@ -866,9 +866,9 @@ IndexTable.prototype = {
|
|
|
866
866
|
});
|
|
867
867
|
form.append(select);
|
|
868
868
|
}
|
|
869
|
-
else
|
|
869
|
+
else // text
|
|
870
870
|
{
|
|
871
|
-
form.append($('<p/>').append($('<input/>').attr('type', 'text').attr('name', f.name).attr('placeholder', f.nice_name).css('width', '' + f.width + 'px')));
|
|
871
|
+
form.append($('<p/>').append($('<input/>').attr('type', 'text').attr('id', 'new_form_' + f.name).attr('name', f.name).attr('placeholder', f.nice_name).css('width', '' + f.width + 'px')));
|
|
872
872
|
if (!focus_field)
|
|
873
873
|
focus_field = f.name;
|
|
874
874
|
}
|
|
@@ -881,7 +881,19 @@ IndexTable.prototype = {
|
|
|
881
881
|
var div = $('<div/>').addClass('note')
|
|
882
882
|
.append($('<h2/>').css('margin-top', 0).css('padding-top', 0).html(that.new_model_text))
|
|
883
883
|
.append(form);
|
|
884
|
-
that.show_message(div, null, function() {
|
|
884
|
+
that.show_message(div, null, function() {
|
|
885
|
+
$('#new_form input[name="' + focus_field + '"]').focus();
|
|
886
|
+
|
|
887
|
+
$.each(that.new_model_fields, function(i, f) {
|
|
888
|
+
if (f.type == 'date')
|
|
889
|
+
{
|
|
890
|
+
$('#new_form_' + f.name).datetimepicker({
|
|
891
|
+
format: f.date_format ? f.date_format : 'm/d/Y',
|
|
892
|
+
timepicker: false
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
});
|
|
896
|
+
});
|
|
885
897
|
},
|
|
886
898
|
|
|
887
899
|
add_model: function()
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: caboose-cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.84
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- William Barry
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pg
|