Merge branch 'develop' of git://github.com/Pita/etherpad-lite into body-block

Conflicts:
	src/templates/pad.html
This commit is contained in:
Edy 2012-05-01 11:35:06 +02:00
commit 1329e93639
8 changed files with 11 additions and 52 deletions

View File

@ -4,17 +4,17 @@
if(process.argv.length != 3) if(process.argv.length != 3)
{ {
console.error("Use: node checkPad.js $PADID"); console.error("Use: node bin/checkPad.js $PADID");
process.exit(1); process.exit(1);
} }
//get the padID //get the padID
var padId = process.argv[2]; var padId = process.argv[2];
//initalize the database //initalize the database
var log4js = require("log4js"); var log4js = require("../src/node_modules/log4js");
log4js.setGlobalLogLevel("INFO"); log4js.setGlobalLogLevel("INFO");
var async = require("async"); var async = require("../src/node_modules/async");
var db = require('../node/db/DB'); var db = require('../src/node/db/DB');
var Changeset = require("ep_etherpad-lite/static/js/Changeset"); var Changeset = require("ep_etherpad-lite/static/js/Changeset");
var padManager; var padManager;
@ -28,7 +28,7 @@ async.series([
//get the pad //get the pad
function (callback) function (callback)
{ {
padManager = require('../node/db/PadManager'); padManager = require('../src/node/db/PadManager');
padManager.doesPadExists(padId, function(err, exists) padManager.doesPadExists(padId, function(err, exists)
{ {

View File

@ -25,7 +25,7 @@ h1 {
h2 { h2 {
font-size: 24px; font-size: 24px;
} }
.seperator { .separator {
margin: 10px 0; margin: 10px 0;
height: 1px; height: 1px;
background: #aaa; background: #aaa;

View File

@ -1318,31 +1318,6 @@ ul#colorpickerswatches li:hover {
line-height: 18px; line-height: 18px;
position: fixed; position: fixed;
} }
#qr_center {
margin: 10px 10px auto 0;
text-align: center;
}
#embedreadonlyqr {
-webkit-box-shadow: 0 0 10px #000;
-moz-box-shadow: 0 0 10px #000;
box-shadow: 0 0 10px #000;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
-ms-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}
#embedreadonlyqr:hover {
cursor: none;
-webkit-transform: scale(1.5);
-moz-transform: scale(1.5);
-o-transform: scale(1.5);
-ms-transform: scale(1.5);
transform: scale(1.5);
}
.rtl { .rtl {
direction: RTL direction: RTL
} }
@ -1518,9 +1493,6 @@ input[type=checkbox] {
#usericonback { #usericonback {
margin-top: 4px margin-top: 4px
} }
#qrcode {
display: none
}
.toolbar ul.menu_right li:not(:last-child) { .toolbar ul.menu_right li:not(:last-child) {
display: block display: block
} }

View File

@ -102,7 +102,6 @@ function getParams()
var showLineNumbers = params["showLineNumbers"]; var showLineNumbers = params["showLineNumbers"];
var useMonospaceFont = params["useMonospaceFont"]; var useMonospaceFont = params["useMonospaceFont"];
var IsnoColors = params["noColors"]; var IsnoColors = params["noColors"];
var hideQRCode = params["hideQRCode"];
var rtl = params["rtl"]; var rtl = params["rtl"];
var alwaysShowChat = params["alwaysShowChat"]; var alwaysShowChat = params["alwaysShowChat"];
@ -148,10 +147,6 @@ function getParams()
// If the username is set as a parameter we should set a global value that we can call once we have initiated the pad. // If the username is set as a parameter we should set a global value that we can call once we have initiated the pad.
settings.globalUserName = decodeURIComponent(userName); settings.globalUserName = decodeURIComponent(userName);
} }
if(hideQRCode)
{
$('#qrcode').hide();
}
if(rtl) if(rtl)
{ {
if(rtl == "true") if(rtl == "true")
@ -1024,7 +1019,6 @@ var settings = {
, noColors: false , noColors: false
, useMonospaceFontGlobal: false , useMonospaceFontGlobal: false
, globalUserName: false , globalUserName: false
, hideQRCode: false
, rtlIsTrue: false , rtlIsTrue: false
}; };

View File

@ -237,14 +237,12 @@ var padeditbar = (function()
var readonlyLink = basePath + "/ro/" + clientVars.readOnlyId; var readonlyLink = basePath + "/ro/" + clientVars.readOnlyId;
$('#embedinput').val("<iframe name='embed_readonly' src='" + readonlyLink + "?showControls=true&showChat=true&showLineNumbers=true&useMonospaceFont=false' width=600 height=400>"); $('#embedinput').val("<iframe name='embed_readonly' src='" + readonlyLink + "?showControls=true&showChat=true&showLineNumbers=true&useMonospaceFont=false' width=600 height=400>");
$('#linkinput').val(readonlyLink); $('#linkinput').val(readonlyLink);
$('#embedreadonlyqr').attr("src","https://chart.googleapis.com/chart?chs=200x200&cht=qr&chld=|0&chl=" + readonlyLink);
} }
else else
{ {
var padurl = window.location.href.split("?")[0]; var padurl = window.location.href.split("?")[0];
$('#embedinput').val("<iframe name='embed_readwrite' src='" + padurl + "?showControls=true&showChat=true&showLineNumbers=true&useMonospaceFont=false' width=600 height=400>"); $('#embedinput').val("<iframe name='embed_readwrite' src='" + padurl + "?showControls=true&showChat=true&showLineNumbers=true&useMonospaceFont=false' width=600 height=400>");
$('#linkinput').val(padurl); $('#linkinput').val(padurl);
$('#embedreadonlyqr').attr("src","https://chart.googleapis.com/chart?chs=200x200&cht=qr&chld=|0&chl=" + padurl);
} }
} }
}; };

View File

@ -98,8 +98,9 @@ var padeditor = (function()
v = getOption('showAuthorColors', true); v = getOption('showAuthorColors', true);
self.ace.setProperty("showsauthorcolors", v); self.ace.setProperty("showsauthorcolors", v);
padutils.setCheckbox($("#options-colorscheck"), v); padutils.setCheckbox($("#options-colorscheck"), v);
// Override from parameters // Override from parameters if true
self.ace.setProperty("showsauthorcolors", !settings.noColors); if (settings.noColors !== false)
self.ace.setProperty("showsauthorcolors", !settings.noColors);
v = getOption('useMonospaceFont', false); v = getOption('useMonospaceFont', false);
self.ace.setProperty("textface", (v ? "monospace" : "Arial, sans-serif")); self.ace.setProperty("textface", (v ? "monospace" : "Arial, sans-serif"));

View File

@ -20,7 +20,7 @@
<h1>Etherpad Lite</h1> <h1>Etherpad Lite</h1>
<div class="seperator"></div> <div class="separator"></div>
<h2>Installed plugins</h2> <h2>Installed plugins</h2>
<table> <table>
<thead> <thead>
@ -44,7 +44,7 @@
</table> </table>
<div class="paged listing search-results"> <div class="paged listing search-results">
<div class="seperator"></div> <div class="separator"></div>
<h2>Search for plugins to install</h2> <h2>Search for plugins to install</h2>
<form> <form>
<input type="text" name="search" placeholder="Search term" id="search-query"> <input type="text" name="search" placeholder="Search term" id="search-query">

View File

@ -201,12 +201,6 @@
<h2>Embed URL</h2> <h2>Embed URL</h2>
<input id="embedinput" type="text" value=""> <input id="embedinput" type="text" value="">
</div> </div>
<br>
<div id="qrcode">
<h2>QR code</h2>
<div id="qr_center"><img id="embedreadonlyqr"></div>
</div>
<% e.end_block(); %>
</div> </div>
<div id="chatthrob"></div> <div id="chatthrob"></div>