mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Change all absolute paths to relative paths, fixed #13
This commit is contained in:
parent
2dc3e34951
commit
aac1e25c9e
8 changed files with 77 additions and 61 deletions
|
@ -172,21 +172,21 @@ function Ace2Editor() {
|
|||
"aceInitInnerdocbodyHead", {iframeHTML:iframeHTML});
|
||||
|
||||
// these lines must conform to a specific format because they are passed by the build script:
|
||||
iframeHTML.push($$INCLUDE_CSS_Q("/static/css/editor.css"));
|
||||
iframeHTML.push($$INCLUDE_CSS_Q("/static/css/syntax.css"));
|
||||
iframeHTML.push($$INCLUDE_CSS_Q("/static/css/inner.css"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/ace2_common.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/skiplist.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/virtual_lines.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/easysync2.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/cssmanager.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/colorutils.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/undomodule.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/contentcollector.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/changesettracker.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/linestylefilter.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/domline.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/ace2_inner.js"));
|
||||
iframeHTML.push($$INCLUDE_CSS_Q("static/css/editor.css"));
|
||||
iframeHTML.push($$INCLUDE_CSS_Q("static/css/syntax.css"));
|
||||
iframeHTML.push($$INCLUDE_CSS_Q("static/css/inner.css"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("static/js/ace2_common.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("static/js/skiplist.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("static/js/virtual_lines.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("static/js/easysync2.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("static/js/cssmanager.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("static/js/colorutils.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("static/js/undomodule.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("static/js/contentcollector.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("static/js/changesettracker.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("static/js/linestylefilter.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("static/js/domline.js"));
|
||||
iframeHTML.push($$INCLUDE_JS_Q("static/js/ace2_inner.js"));
|
||||
|
||||
iframeHTML.push('\'\\n<style type="text/css" title="dynamicsyntax"></style>\\n\'');
|
||||
iframeHTML.push('\'</head><body id="innerdocbody" class="syntax" spellcheck="false"> </body></html>\'');
|
||||
|
@ -207,7 +207,7 @@ function Ace2Editor() {
|
|||
'}, 0); }';
|
||||
|
||||
var outerHTML = [doctype, '<html><head>',
|
||||
$$INCLUDE_CSS("/static/css/editor.css"),
|
||||
$$INCLUDE_CSS("static/css/editor.css"),
|
||||
// bizarrely, in FF2, a file with no "external" dependencies won't finish loading properly
|
||||
// (throbs busy while typing)
|
||||
'<link rel="stylesheet" type="text/css" href="data:text/css,"/>',
|
||||
|
|
|
@ -533,10 +533,10 @@ var pad = {
|
|||
},
|
||||
preloadImages: function() {
|
||||
var images = [
|
||||
'/static/img/feedbackbox2.gif',
|
||||
'/static/img/sharebox4.gif',
|
||||
'/static/img/sharedistri.gif',
|
||||
'/static/img/colorpicker.gif',
|
||||
'static/img/feedbackbox2.gif',
|
||||
'static/img/sharebox4.gif',
|
||||
'static/img/sharedistri.gif',
|
||||
'static/img/colorpicker.gif',
|
||||
];
|
||||
function loadNextImage() {
|
||||
if (images.length == 0) {
|
||||
|
|
|
@ -30,7 +30,7 @@ var padsavedrevs = (function() {
|
|||
'<div class="sractions"><a class="srview" href="javascript:void(0)" target="_blank">view</a> | <a class="srrestore" href="javascript:void(0)">restore</a></div>'+
|
||||
'<div class="srtime"><!-- --></div>'+
|
||||
'<div class="srauthor"><!-- --></div>'+
|
||||
'<img class="srtwirly" src="/static/img/misc/status-ball.gif">'+
|
||||
'<img class="srtwirly" src="static/img/misc/status-ball.gif">'+
|
||||
'</div></div>');
|
||||
setBoxLabel(box, revisionInfo.label);
|
||||
setBoxTimestamp(box, revisionInfo.timestamp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue