jQuery 3.2.1 - use of deprecated size() function in fuel_inline.min.js
In order to use the latest version of jQuery with Fuel CMS 1.4 it is necessary to update modules/fuel/assets/js/fuel/fuel_inline.min.js on line 78:
var toggleEditOff=true;if(markers.size()>0){$body=$("body");
becomes:
var toggleEditOff=true;if(markers.length>0){$body=$("body");
Comments
https://github.com/daylightstudio/FUEL-CMS/tree/develop
Click a pencil to edit inline element, this appears really quickly before going to a blank page.
jquery.min.js:4 Uncaught TypeError: a.indexOf is not a function
at e.fn.init.r.fn.load (jquery.min.js:4)
at Object.fuel.modalWindow (fuel_inline.min.js?c=:75)
at HTMLSelectElement. (fuel_inline.min.js?c=:91)
at HTMLSelectElement.dispatch (jquery.min.js:3)
at HTMLSelectElement.q.handle (jquery.min.js:3)
r.fn.load @ jquery.min.js:4
fuel.modalWindow @ fuel_inline.min.js?c=:75
(anonymous) @ fuel_inline.min.js?c=:91
dispatch @ jquery.min.js:3
q.handle @ jquery.min.js:3
Blank page: This variable must either be saved in the admin or edited in the associated views/_variables file.
But like I've said previously the variable definitely does exist - its failing on that all important piece of jQuery.
Tools->Page Analysis:
Same output - except for 88 instead of 91.
jquery.min.js:4 Uncaught TypeError: a.indexOf is not a function
at e.fn.init.r.fn.load (jquery.min.js:4)
at Object.fuel.modalWindow (fuel_inline.min.js?c=:75)
at HTMLSelectElement. (fuel_inline.min.js?c=:88)
at HTMLSelectElement.dispatch (jquery.min.js:3)
at HTMLSelectElement.q.handle (jquery.min.js:3)
r.fn.load @ jquery.min.js:4
fuel.modalWindow @ fuel_inline.min.js?c=:75
(anonymous) @ fuel_inline.min.js?c=:91
dispatch @ jquery.min.js:3
q.handle @ jquery.min.js:3
---
Not sure how to fix this one myself.
PS. Whenever I finish this website I sure to send you a link for your showcase!
jquery.min.js:4 Uncaught TypeError: a.indexOf is not a function
at e.fn.init.r.fn.load (jquery.min.js:4)
at HTMLAnchorElement. (fuel_inline.min.js?c=:1781)
at HTMLAnchorElement.dispatch (jquery.min.js:3)
at HTMLAnchorElement.q.handle (jquery.min.js:3)
r.fn.load @ jquery.min.js:4
(anonymous) @ fuel_inline.min.js?c=:1781
dispatch @ jquery.min.js:3
q.handle @ jquery.min.js:3
BTW, the files haven't been minified.
They appear to be minified aside from line breaks.
jquery.min.js:4 Uncaught TypeError: a.indexOf is not a function
at e.fn.init.r.fn.load (jquery.min.js:4)
at HTMLAnchorElement. (fuel_inline.min.js?c=:1781)
at HTMLAnchorElement.dispatch (jquery.min.js:3)
at HTMLAnchorElement.q.handle (jquery.min.js:3)
r.fn.load @ jquery.min.js:4
(anonymous) @ fuel_inline.min.js?c=:1781
dispatch @ jquery.min.js:3
q.handle @ jquery.min.js:3
Just one thing now, if the modal contains a textarea the width isn't wide enough - I do however get a horizontal scrollbar. Hopefully something a little CSS will easily fix.
6 on another
18 on another
I have an A-Z glossary page that has a link per letter, will have to turn that off for sure.
I'll just have to be more selective.