Skip to content

Commit

Permalink
update test template
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Jun 3, 2013
1 parent d40ec0d commit 0e47661
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.html
Expand Up @@ -10,14 +10,17 @@
<script src="sea-modules/jquery/jquery/1.7.2/jquery.js"></script>
<script type="text/javascript">
seajs.config({
base: './',
alias: {
'$': 'jquery/jquery/1.7.2/jquery'
},
map: [
function(url) {
var regex = /gallery\/(.*?)\/\d+\..*?\/(.*)$/
return url.replace(regex, '$1/dist/$2')
if (regex.test(url)) {
url = url.replace('sea-modules/', '');
return url.replace(regex, '$1/dist/$2')
}
return url;
}
]
});
Expand Down

0 comments on commit 0e47661

Please sign in to comment.