Andrés Méndez
Posts: 0
Joined: Thu Apr 18, 2013 6:13 pm

Add content to mobileinit

Hello.

To speed up my app, I want to add:
code
$(document).bind("mobileinit", function() { $.mobile.buttonMarkup.hoverDelay = 0
});
/code

I see that Appery currently declares code for mobileinit:
code
<script type="text&#47;javascript" src="files&#47;resources&#47;lib&#47;jquery&#47;jquery-1&#46;8&#46;2&#46;js">
<&#47;script>
<script type="text&#47;javascript">
$(document)&#46;bind("mobileinit", function()
{
if (navigator&#46;userAgent&#46;indexOf("Android") != -1)
{
$&#46;mobile&#46;defaultPageTransition = 'none';
$&#46;mobile&#46;defaultDialogTransition = 'none';
}
});
<&#47;script>
<script type="text&#47;javascript" src="files&#47;resources&#47;lib&#47;jquerymobile&#47;1&#46;3&#46;0&#47;jquery&#46;mobile-1&#46;3&#46;0&#46;js">
<&#47;script>
/code

But if I add that code to a JS, Appery adds it after jquery.mobile-1.3.0.js, and it has to be between jquery-1.8.2.js and jquery.mobile-1.3.0.js (as Appery currently does).

For the moment, I download the project, edit it, and compile it, but for not doing it everytime, how can I add code to the mobileinit?

Thanks,
Andrés.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Add content to mobileinit

Next week we are releasing source code editing feature - you will be able to edit the code inside Appery.io

Andrés Méndez
Posts: 0
Joined: Thu Apr 18, 2013 6:13 pm

Add content to mobileinit

Great!

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Add content to mobileinit

Awesome!!

Andrés Méndez
Posts: 0
Joined: Thu Apr 18, 2013 6:13 pm

Add content to mobileinit

As new version of Appery has been released, I have tried the edit code new function, and I could change config.xml.

Great work!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Add content to mobileinit

Thank you for the feedback!

Return to “Issues”