Skip to content

Instantly share code, notes, and snippets.

@muskie9
Created August 21, 2015 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muskie9/a7f0d8de786cc6c8c13f to your computer and use it in GitHub Desktop.
Save muskie9/a7f0d8de786cc6c8c13f to your computer and use it in GitHub Desktop.
(function ($) {
var clonePriorTimes = function (button) {
var toCopy = button.attr('name');
console.log(toCopy);
};
$('.cms-edit-form .field.can-copy .ui-button').entwine({
onclick: function () {
clonePriorTimes(this);
this._super();
}
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment