Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename index_extra_fields -> item_extra_fields

  • Loading branch information...
commit 7f5751986e4b10d940e3d4452c30efdaf340fa69 1 parent 3c5b62f
Roman authored
View
2  app/assets/javascripts/character/generic/application.coffee
@@ -29,7 +29,7 @@ class @GenericApplication
options.index_scopes ?= {}
# Extra model fields for custom template, if needed
- options.index_extra_fields ?= []
+ options.item_extra_fields ?= []
# Reordering items in a list
options.reorderable ?= false
View
2  app/assets/javascripts/character/generic/controller.coffee
@@ -16,7 +16,7 @@ class @GenericController extends Marionette.Controller
reorderable: @options.reorderable
item_title: @options.item_title
item_meta: @options.item_meta
- index_extra_fields: @options.index_extra_fields
+ item_extra_fields: @options.item_extra_fields
if @collection.options
_(@collection.options).extend
View
4 app/assets/javascripts/character/generic/model.coffee
@@ -31,8 +31,8 @@ class @GenericCollection extends Backbone.Collection
params.order_by = @options.order_by if @options.order_by
params.title_field = @options.item_title if @options.item_title
params.meta_field = @options.item_meta if @options.item_meta
- unless _.isEmpty(@options.index_extra_fields)
- params["extra_fields[]"] = @options.index_extra_fields
+ unless _.isEmpty(@options.item_extra_fields)
+ params["extra_fields[]"] = @options.item_extra_fields
@options.api + "?" + $.param(params, true)
Please sign in to comment.
Something went wrong with that request. Please try again.