Sha256: f8bd9e5f9777b25df831dc70fefac7146065de5aaf93e247ab1d13604c70310c
Contents?: true
Size: 1.04 KB
Versions: 22
Compression:
Stored size: 1.04 KB
Contents
var root = typeof exports !== 'undefined' && exports !== null ? exports : this root.taxon_tree_menu = function (obj, context) { var adminBaseUrl = Spree.url(Spree.routes.admin_taxonomy_taxons_path) var editUrl = adminBaseUrl.clone() editUrl.setPath(editUrl.path() + '/' + obj.attr('id') + '/edit') return { create: { label: '<i class="icon icon-add"></i>' + Spree.translations.add, action: function (obj) { return context.create(obj) } }, rename: { label: '<i class="icon icon-edit"></i> ' + Spree.translations.rename, action: function (obj) { return context.rename(obj) } }, remove: { label: '<i class="icon icon-delete"></i> ' + Spree.translations.remove, action: function (obj) { return context.remove(obj) } }, edit: { separator_before: true, label: '<i class="icon icon-settings"></i> ' + Spree.translations.edit, action: function () { window.location = editUrl.toString() return window.location } } } }
Version data entries
22 entries across 22 versions & 1 rubygems