Permalink
Browse files

Inline script handling changed

If "type" is specified and not "text/javascript" then now ignored
  • Loading branch information...
1 parent 919a721 commit c77ef595d2a4628c0c3903af1d80d17245ab9e63 @arvgta committed Jan 5, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 ajaxify.js
View
@@ -335,7 +335,8 @@ pO("scripts", { $s : false }, { canonical: true, inline: true, inlinehints: fals
},
alltxts: function ($s) {
$s.each(function () {
- var d = $(this).text();
+ var d = $(this).text(), t = $(this).attr('type');
+ if(t && !t.toLowerCase().iO('text/javascript')) return;
if (!d.iO(").ajaxify(") && ((inline && !_inlineskip(d)) || $(this).hasClass("ajaxy") || _inlinehints(d))) _addtext(d);
});
},

0 comments on commit c77ef59

Please sign in to comment.