Page 1 of 1

Add content to mobileinit

Posted: Thu Jun 20, 2013 11:22 am
by Andrés Méndez

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.


Add content to mobileinit

Posted: Thu Jun 20, 2013 5:05 pm
by maxkatz

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


Add content to mobileinit

Posted: Thu Jun 20, 2013 5:06 pm
by Andrés Méndez

Great!


Add content to mobileinit

Posted: Thu Jun 20, 2013 5:27 pm
by Emmz

Awesome!!


Add content to mobileinit

Posted: Tue Jul 02, 2013 6:31 pm
by Andrés Méndez

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

Great work!


Add content to mobileinit

Posted: Tue Jul 02, 2013 6:33 pm
by Kateryna Grynko

Thank you for the feedback!