[xwiki-users] How to use the minificated Scriptaculous.js/Prototype.js
Hello, right now I'm trying to use the minificated Scriptaculous.js/Prototype.js, but I don't have a clue how it works. I tested my application with the original files and it works. Could somebody explain to me how I have to transform my code e.g. see below to make it work with the minificated files brought by xwiki. <script type="text/javascript" language="javascript" charset="utf-8"> // <![CDATA[ Sortable.create('testlist',{ghosting:false,constraint:false,hoverclass:' over', onChange:function(element){$('testlist_serialize').innerHTML = Sortable.serialize(element.parentNode)} }); // ]]> </script> Many thanks in advance, Josef Haimerl
Hi, Minification should not affect the original file at all so your code should work the same with the minified version as it works with the original version. If there is an issue which only appears when pulling in the minified version, please let us know because it means there is a bug in the minifier. Thanks, Caleb On 07/26/2012 05:08 PM, Haimerl, Josef wrote:
Hello,
right now I'm trying to use the minificated Scriptaculous.js/Prototype.js, but I don't have a clue how it works.
I tested my application with the original files and it works. Could somebody explain to me how I have to transform my code e.g. see below to make it work with the minificated files brought by xwiki.
<script type="text/javascript" language="javascript" charset="utf-8">
// <![CDATA[
Sortable.create('testlist',{ghosting:false,constraint:false,hoverclass:' over',
onChange:function(element){$('testlist_serialize').innerHTML = Sortable.serialize(element.parentNode)}
});
// ]]>
</script>
Many thanks in advance,
Josef Haimerl
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Caleb James DeLisle -
Haimerl, Josef