Permalink
Browse files

work on the included themes

Signed-off-by: Jonathan Fielding <j.fielding@me.com>
  • Loading branch information...
1 parent 2bad4f4 commit 5bcba40172d1432719a4263e4ba7e312c0dac6c5 @jonathan-fielding committed Mar 28, 2012
@@ -93,19 +93,22 @@ var app = function(){
getDevice();
//Load the plugins into the app
- require([app.url_path + 'plugins/add_plugins.js'],function(){
+ app.require([app.url_path + 'plugins/add_plugins.js'],function(){
add_plugins.init();
});
//Styling
app.updateTheme();
//Each module should have a javascript file, we pull this in here
- require([javascript_required],function(){
+ app.require([javascript_required],function(){
window[module_name].init(eventData);
});
},
+ require: function(items, callback){
+ require(items, callback);
+ },
updateTheme: function(){
//load theme
if(app.theme != ''){
View
@@ -12,6 +12,7 @@
<div data-role="header" data-position="fixed">
<h1>AppBoilerplate</h1>
+ <h2>Sample Page</h2>
</div>
<div data-role="content">
@@ -10,11 +10,11 @@
<div data-role="page" data-module="sample">
<div data-role="header" data-position="fixed" data-fullscreen="true">
- <h1>Sample page</h1>
+ <h1>AppBoilerplate</h1>
+ <h2>Sample Page</h2>
</div><!-- /header -->
<div data-role="content">
- <input type="search" />
<ul id="list_todo" data-role="listview">
<li>
<a href="#dialog_item">
View
@@ -3,7 +3,7 @@ var add_plugins = function(){
init: function(){
//add all plugins to the app
- require([app.url_path + 'plugins/sample_plugin/sample_plugin.js',app.url_path + 'plugins/theme_switcher/theme_switcher.js',app.url_path + 'plugins/notify/notify.js'],function(){
+ app.require([app.url_path + 'plugins/sample_plugin/sample_plugin.js',app.url_path + 'plugins/theme_switcher/theme_switcher.js',app.url_path + 'plugins/notify/notify.js'],function(){
app.sample_plugin.init();
app.theme_switcher.default_theme = 'AppBoilerplate';
app.theme_switcher.android_theme = 'Android';
@@ -339,6 +339,7 @@ body {
.ui-bar-c button {
font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
}
+
.ui-body-c,
.ui-dialog.ui-overlay-c {
border: 1px solid #B3B3B3 /*{c-body-border}*/;
Oops, something went wrong.

0 comments on commit 5bcba40

Please sign in to comment.