mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 04:16:37 -04:00
Cleanup
This commit is contained in:
parent
b879475160
commit
50c3ee7a79
1 changed files with 1 additions and 5 deletions
|
@ -19,9 +19,6 @@ var getSchema = function () {
|
|||
}
|
||||
|
||||
var canEditField = function (field) {
|
||||
console.log(field.atts.name)
|
||||
console.log(field)
|
||||
console.log('\n\n')
|
||||
// show field only if user is admin or it's marked as editable
|
||||
return isAdmin(Meteor.user()) || !!field.atts.editable || (!!field.afFieldInputAtts && !!field.afFieldInputAtts.editable)
|
||||
}
|
||||
|
@ -33,7 +30,6 @@ Template[getTemplate('quickForm_settings')].helpers({
|
|||
// filter out fields with "$" in their name
|
||||
return (field.name.indexOf('$') === -1) && (!field.autoform || !field.autoform.group); // TODO: find cleaner solution
|
||||
}), 'name');
|
||||
console.log(fields)
|
||||
return fields;
|
||||
},
|
||||
afFieldsets: function () {
|
||||
|
@ -48,7 +44,7 @@ Template[getTemplate('quickForm_settings')].helpers({
|
|||
|
||||
// get names of fields whose group match the current fieldset
|
||||
var fields = _.pluck(_.filter(getSchema(), function (field, key) {
|
||||
return field.autoform && field.autoform.group == fieldset;
|
||||
return (field.name.indexOf('$') === -1) && field.autoform && field.autoform.group == fieldset;
|
||||
}), 'name');
|
||||
|
||||
return fields;
|
||||
|
|
Loading…
Add table
Reference in a new issue