Sha256: ba3f37ff628fa7ad23a5729e8e3ed25f59a67f24062dc57063f75ea4e9d359ca
Contents?: true
Size: 1.07 KB
Versions: 54
Compression:
Stored size: 1.07 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: '<span class="icon icon-plus"></span> ' + Spree.translations.add, action: function (obj) { return context.create(obj) } }, rename: { label: '<span class="icon icon-pencil"></span> ' + Spree.translations.rename, action: function (obj) { return context.rename(obj) } }, remove: { label: '<span class="icon icon-trash"></span> ' + Spree.translations.remove, action: function (obj) { return context.remove(obj) } }, edit: { separator_before: true, label: '<span class="icon icon-cog"></span> ' + Spree.translations.edit, action: function () { window.location = editUrl.toString() return window.location } } } }
Version data entries
54 entries across 54 versions & 1 rubygems