From abbecaf2a16f2af4652e244880f17432fdb7f728 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= Date: Sun, 14 Sep 2014 15:37:42 -0400 Subject: [PATCH] Provide developers (unit test writers in particular) information about the original button that is being mimicked in the buttonpane. --- js/crm.ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/crm.ajax.js b/js/crm.ajax.js index d5ddcf153b..aa6a87095f 100644 --- a/js/crm.ajax.js +++ b/js/crm.ajax.js @@ -461,7 +461,7 @@ identifier = $el.attr('name') || $el.attr('href'); if (!identifier || identifier === '#' || $.inArray(identifier, added) < 0) { var $icon = $el.find('.icon'), - button = {text: label, click: function() { + button = {'data-identifier': identifier, text: label, click: function() { $el.click(); }}; if ($icon.length) { -- 2.25.1