Skip to content
Browse files

Fixed bugs with urls

Signed-off-by: Jonathan Fielding <j.fielding@me.com>
  • Loading branch information...
1 parent 0d8ad51 commit f9e8d40c6089bf0ab27533c637f414aeb75312e2 @jonathan-fielding committed
Showing with 9 additions and 8 deletions.
  1. +6 −7 app/views/sample/index.html
  2. +3 −1 assets/js/AppBoilerplate.js
View
13 app/views/sample/index.html
@@ -3,15 +3,14 @@
<head>
<title>App Name</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="../../assets/css/jquery.mobile-1.1.0-rc.1.min.css" />
- <link rel="stylesheet" href="../../assets/css/AppBoilerplate.css" />
+ <link rel="stylesheet" href="../../../assets/css/jquery.mobile-1.1.0-rc.1.min.css" />
+ <link rel="stylesheet" href="../../../assets/css/AppBoilerplate.css" />
</head>
<body>
<div data-role="page" data-module="sample">
<div data-role="header" data-position="fixed" data-fullscreen="true">
<h1>AppBoilerplate</h1>
- <h2>Sample Page</h2>
</div><!-- /header -->
<div data-role="content">
@@ -66,9 +65,9 @@
</div><!-- /page -->
- <script src="../../assets/js/libs/jquery-1.7.1.min.js"></script>
- <script src="../../assets/js/libs/jquery.mobile-1.1.0-rc.1.js"></script>
- <script src="../../assets/js/libs/require.js"></script>
- <script src="../../assets/js/AppBoilerplate.js"></script>
+ <script src="../../../assets/js/libs/jquery-1.7.1.min.js"></script>
+ <script src="../../../assets/js/libs/jquery.mobile-1.1.0-rc.1.js"></script>
+ <script src="../../../assets/js/libs/require.js"></script>
+ <script src="../../../assets/js/AppBoilerplate.js"></script>
</body>
</html>
View
4 assets/js/AppBoilerplate.js
@@ -87,9 +87,11 @@ var app = function(){
var javascript_required = module_name +'.js'
if(app.url_path === ''){
- app.url_path = window.location.href.replace(/modules\/.*?$/, '').replace('index.html','');
+ app.url_path = window.location.href.replace(/app\/.*?$/, '').replace('index.html','');
}
+ console.log(app.url_path);
+
getDevice();
//Load the plugins into the app

0 comments on commit f9e8d40

Please sign in to comment.
Something went wrong with that request. Please try again.