torvista / Zen-Cart_CEON-URI-Mapping

Based on version 5.1.1. from ceon.net
GNU General Public License v2.0
2 stars 5 forks source link

Admin, Copy Product: hidden on Link, simplify locating #15

Open torvista opened 7 months ago

torvista commented 7 months ago

Since this now can be hidden for the linked option (https://github.com/zencart/zencart/pull/6262), I think this URI block could be at the end/be just before the button in all cases since in general the URI options will not be changed from default...leaving any observer-added options that are more likely to be changed, before/directly over the Duplicate select.

So all this dizzying block can be removed: https://github.com/torvista/Zen-Cart_CEON-URI-Mapping/blob/f756cfe1dc13be782f9309816963b7b391446eb4/files/ADMIN_FOLDER/includes/ceon_uri_mapping_javascript.php#L237-L248 and just use this

var formList = document.forms; place = formList[formList.length - 1][formList[formList.length - 1].length - 1];

torvista commented 7 months ago

...but this locates the URI div inside the same div as the button instead of before it and I've been defeated by insertBefore long enough now to find something else to do.

torvista commented 7 months ago

Done.