Permalink
Browse files

using some relative paths to load files

  • Loading branch information...
1 parent 4ea1a24 commit ae59feca319788c2646818013a5ff54fe4f27b76 @mishoo committed Nov 24, 2009
Showing with 18 additions and 16 deletions.
  1. +1 −1 conf/nginx.conf
  2. +16 −14 test/index.html
  3. +1 −1 test/test.js
View
@@ -8,6 +8,6 @@ server {
# gzip_comp_level 9;
location / {
- root /home/mishoo/work/ymacs/test/;
+ root /home/mishoo/work/ymacs/;
}
}
View
@@ -12,23 +12,25 @@
</center>
<script>
window.Dynarch_Base_Url = "./dl";
+ window.YMACS_SRC_PATH = "../src/js/";
</script>
<script src="dl/js/thelib.js"></script>
<!-- <script src="http://www.jstoolkit.com.d/src/js/all-scripts.jsx?crunch=0;path=http://www.jstoolkit.com.d/src/js"></script> -->
- <script src="ymacs/js/ymacs.js"></script>
- <script src="ymacs/js/ymacs-regexp.js"></script>
- <script src="ymacs/js/ymacs-frame.js"></script>
- <script src="ymacs/js/ymacs-textprop.js"></script>
- <script src="ymacs/js/ymacs-buffer.js"></script>
- <script src="ymacs/js/ymacs-marker.js"></script>
- <script src="ymacs/js/ymacs-commands.js"></script>
- <script src="ymacs/js/ymacs-keymap.js"></script>
- <script src="ymacs/js/ymacs-keymap-emacs.js"></script>
- <script src="ymacs/js/ymacs-keymap-isearch.js"></script>
- <script src="ymacs/js/ymacs-tokenizer.js"></script>
- <script src="ymacs/js/ymacs-mode-lisp.js"></script>
- <script src="ymacs/js/ymacs-mode-js.js"></script>
- <script src="ymacs/js/ymacs-mode-xml.js"></script>
+ <script src="../src/js/ymacs.js"></script>
+ <script src="../src/js/ymacs-regexp.js"></script>
+ <script src="../src/js/ymacs-frame.js"></script>
+ <script src="../src/js/ymacs-textprop.js"></script>
+ <script src="../src/js/ymacs-buffer.js"></script>
+ <script src="../src/js/ymacs-marker.js"></script>
+ <script src="../src/js/ymacs-commands.js"></script>
+ <script src="../src/js/ymacs-keymap.js"></script>
+ <script src="../src/js/ymacs-keymap-emacs.js"></script>
+ <script src="../src/js/ymacs-keymap-isearch.js"></script>
+ <script src="../src/js/ymacs-tokenizer.js"></script>
+ <script src="../src/js/ymacs-mode-lisp.js"></script>
+ <script src="../src/js/ymacs-mode-js.js"></script>
+ <script src="../src/js/ymacs-mode-xml.js"></script>
+ <script src="../src/js/ymacs-mode-markdown.js"></script>
<script src="test.js"></script>
</body>
</html>
View
@@ -124,7 +124,7 @@ function () {\n\
files.foreach(function(file){
var item = new DlMenuItem({ label: file, parent: submenu });
item.addEventListener("onSelect", function(){
- var request = new DlRPC({ url: "/ymacs/js/" + file + "?killCache=" + new Date().getTime() });
+ var request = new DlRPC({ url: YMACS_SRC_PATH + file + "?killCache=" + new Date().getTime() });
request.call({
callback: function(data){
var code = data.text;

0 comments on commit ae59fec

Please sign in to comment.