Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2 lines
594 B
JavaScript
2 lines
594 B
JavaScript
var postfix=function(){"use strict";var f,p,a,h;return f={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},p=["(","?"],a={")":["("],":":["?","?:"]},h=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/,function(r){for(var e,s,t,i,u=[],n=[];e=r.match(h);){for(s=e[0],(t=r.substr(0,e.index).trim())&&u.push(t);i=n.pop();){if(a[s]){if(a[s][0]===i){s=a[s][1]||s;break}}else if(0<=p.indexOf(i)||f[i]<f[s]){n.push(i);break}u.push(i)}a[s]||n.push(s),r=r.substr(e.index+s.length)}return(r=r.trim())&&u.push(r),u.concat(n.reverse())}}();
|