-
Notifications
You must be signed in to change notification settings - Fork 5
/
jmvcdoc.js
45 lines (38 loc) · 1.16 KB
/
jmvcdoc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
steal.loadedProductionCSS = true;
steal(
'jmvcdoc/content',
'jmvcdoc/nav',
'jmvcdoc/search',
'jquery/dom/route',
'steal/html/client.js'
/*,
'jquery/controller/view',
'jquery/lang/json',
'jquery/dom/cookie',
'mxui/layout/positionable'*/
).then(function() {
var pageNameArr = window.location.href.match(/docs\/(.*)\.html/),
pageName = pageNameArr && pageNameArr[1];
if ( pageName && location.hash == "" ) {
window.location.hash = "&who=" + pageName
}
$.route.ready(false)
(":who",{who: "index"})
("/search/:search");
$('#nav').jmvcdoc_nav();
$("#doc").jmvcdoc_content({clientState : $.route.data});
$("#search").jmvcdoc_search({clientState : $.route.data});
//Doc.location = steal.root.join("jmvc/docs/")
$.route.ready(false);
Doc.load(function(){
$.route.ready(true);
});
})
/*
if ( typeof(COMMENTS_LOCATION) != "undefined" ) {
steal.css("http://mediacdn.disqus.com/1066/build/themes/narcissus.css?1281560657&",
"http://mediacdn.disqus.com/1066/styles/embed/thread.css?");
if ( window.location.protocol == "file:" || window.location.hostname == "localhost" ) { // development
window.disqus_developer = 1
}
}*/