Closed kiatng closed 3 weeks ago
Question: should the js be moved from js\varien\js.js
to js\mage\adminhtml\tools.js
since it's only available in backend.
@kiatng probably yes, I don't see that function be helpful on the frontend :-)
Beautiful!
don't know if i'm seing this right but, at it is now, what was implemented in https://github.com/OpenMage/magento-lts/pull/3960 doesn't seem to work anymore, I don't see any copy-icons in the sales-order page
my fault, sorry, without HTTPS navigator.clipboard is disabled so the whole thing doesn't work.
I don't remember how I tested this feature previously :-\
Modern browsers require https to access the clipboard. For insecure http, you need to use Chrome. In the address bar, enter "chrome://flags/#Insecure-origins-treated-as-secure". Then input the URLs separated with a space in the box of Insecure origins treated as secure
tested, working perfectly
since we didn't get any more feedback I'll merge
Description (*)
Add
copyable
property to grid column. When the property is set totrue
, render the clickable copy icon in the cell:Related Pull Requests
See the main PR #3960 that renders the copy icon and the js that copies the target text. See the enhanced PR #4019 that copies text in the grid without navigating to the edit/view page.
Manual testing scenarios (*)
On any grid class, set 'copyable' => true,`; for example
Comments
In order for the legacy theme to work, I copy the related CSS from the openmage theme to the default/boxes.css.