Commit 595da66a authored by Giuseppe Terrasi's avatar Giuseppe Terrasi

- revert changes in skins/default folder, now is exactly as rev 1272 upstream revision
- move wnd.js, see bug #1020256, in light folder;
parent 96ec2896
...@@ -102,7 +102,7 @@ Attacklab.wmdBase = function(){ ...@@ -102,7 +102,7 @@ Attacklab.wmdBase = function(){
// The link and title for the help button // The link and title for the help button
var helpLink = "http://daringfireball.net/projects/markdown/syntax"; var helpLink = "http://daringfireball.net/projects/markdown/syntax";
var helpHoverTitle = "Sintassi MarkDown"; var helpHoverTitle = "MarkDown Syntax";
var helpTarget = "_blank"; var helpTarget = "_blank";
// ------------------------------------------------------------------- // -------------------------------------------------------------------
...@@ -985,7 +985,7 @@ Attacklab.wmdBase = function(){ ...@@ -985,7 +985,7 @@ Attacklab.wmdBase = function(){
var boldButton = document.createElement("li"); var boldButton = document.createElement("li");
boldButton.className = "wmd-button"; boldButton.className = "wmd-button";
boldButton.id = "wmd-bold-button"; boldButton.id = "wmd-bold-button";
boldButton.title = "Grassetto <strong> Ctrl+B"; boldButton.title = "Strong <strong> Ctrl+B";
boldButton.XShift = "0px"; boldButton.XShift = "0px";
boldButton.textOp = command.doBold; boldButton.textOp = command.doBold;
setupButton(boldButton, true); setupButton(boldButton, true);
...@@ -994,7 +994,7 @@ Attacklab.wmdBase = function(){ ...@@ -994,7 +994,7 @@ Attacklab.wmdBase = function(){
var italicButton = document.createElement("li"); var italicButton = document.createElement("li");
italicButton.className = "wmd-button"; italicButton.className = "wmd-button";
italicButton.id = "wmd-italic-button"; italicButton.id = "wmd-italic-button";
italicButton.title = "Corsivo <em> Ctrl+I"; italicButton.title = "Emphasis <em> Ctrl+I";
italicButton.XShift = "-20px"; italicButton.XShift = "-20px";
italicButton.textOp = command.doItalic; italicButton.textOp = command.doItalic;
setupButton(italicButton, true); setupButton(italicButton, true);
...@@ -1008,7 +1008,7 @@ Attacklab.wmdBase = function(){ ...@@ -1008,7 +1008,7 @@ Attacklab.wmdBase = function(){
var linkButton = document.createElement("li"); var linkButton = document.createElement("li");
linkButton.className = "wmd-button"; linkButton.className = "wmd-button";
linkButton.id = "wmd-link-button"; linkButton.id = "wmd-link-button";
linkButton.title = "Collegamento <a> Ctrl+L"; linkButton.title = "Hyperlink <a> Ctrl+L";
linkButton.XShift = "-40px"; linkButton.XShift = "-40px";
linkButton.textOp = function(chunk, postProcessing, useDefaultText){ linkButton.textOp = function(chunk, postProcessing, useDefaultText){
return command.doLinkOrImage(chunk, postProcessing, false); return command.doLinkOrImage(chunk, postProcessing, false);
...@@ -1019,7 +1019,7 @@ Attacklab.wmdBase = function(){ ...@@ -1019,7 +1019,7 @@ Attacklab.wmdBase = function(){
var quoteButton = document.createElement("li"); var quoteButton = document.createElement("li");
quoteButton.className = "wmd-button"; quoteButton.className = "wmd-button";
quoteButton.id = "wmd-quote-button"; quoteButton.id = "wmd-quote-button";
quoteButton.title = "Citazione <blockquote> Ctrl+Q"; quoteButton.title = "Blockquote <blockquote> Ctrl+Q";
quoteButton.XShift = "-60px"; quoteButton.XShift = "-60px";
quoteButton.textOp = command.doBlockquote; quoteButton.textOp = command.doBlockquote;
setupButton(quoteButton, true); setupButton(quoteButton, true);
...@@ -1028,7 +1028,7 @@ Attacklab.wmdBase = function(){ ...@@ -1028,7 +1028,7 @@ Attacklab.wmdBase = function(){
var codeButton = document.createElement("li"); var codeButton = document.createElement("li");
codeButton.className = "wmd-button"; codeButton.className = "wmd-button";
codeButton.id = "wmd-code-button"; codeButton.id = "wmd-code-button";
codeButton.title = "Codice sorgente <pre><code> Ctrl+K"; codeButton.title = "Code Sample <pre><code> Ctrl+K";
codeButton.XShift = "-80px"; codeButton.XShift = "-80px";
codeButton.textOp = command.doCode; codeButton.textOp = command.doCode;
setupButton(codeButton, true); setupButton(codeButton, true);
...@@ -1037,7 +1037,7 @@ Attacklab.wmdBase = function(){ ...@@ -1037,7 +1037,7 @@ Attacklab.wmdBase = function(){
var imageButton = document.createElement("li"); var imageButton = document.createElement("li");
imageButton.className = "wmd-button"; imageButton.className = "wmd-button";
imageButton.id = "wmd-image-button"; imageButton.id = "wmd-image-button";
imageButton.title = "Immagine <img> Ctrl+G"; imageButton.title = "Image <img> Ctrl+G";
imageButton.XShift = "-100px"; imageButton.XShift = "-100px";
imageButton.textOp = function(chunk, postProcessing, useDefaultText){ imageButton.textOp = function(chunk, postProcessing, useDefaultText){
return command.doLinkOrImage(chunk, postProcessing, true); return command.doLinkOrImage(chunk, postProcessing, true);
...@@ -1053,7 +1053,7 @@ Attacklab.wmdBase = function(){ ...@@ -1053,7 +1053,7 @@ Attacklab.wmdBase = function(){
var olistButton = document.createElement("li"); var olistButton = document.createElement("li");
olistButton.className = "wmd-button"; olistButton.className = "wmd-button";
olistButton.id = "wmd-olist-button"; olistButton.id = "wmd-olist-button";
olistButton.title = "Elenco numerato <ol> Ctrl+O"; olistButton.title = "Numbered List <ol> Ctrl+O";
olistButton.XShift = "-120px"; olistButton.XShift = "-120px";
olistButton.textOp = function(chunk, postProcessing, useDefaultText){ olistButton.textOp = function(chunk, postProcessing, useDefaultText){
command.doList(chunk, postProcessing, true, useDefaultText); command.doList(chunk, postProcessing, true, useDefaultText);
...@@ -1064,7 +1064,7 @@ Attacklab.wmdBase = function(){ ...@@ -1064,7 +1064,7 @@ Attacklab.wmdBase = function(){
var ulistButton = document.createElement("li"); var ulistButton = document.createElement("li");
ulistButton.className = "wmd-button"; ulistButton.className = "wmd-button";
ulistButton.id = "wmd-ulist-button"; ulistButton.id = "wmd-ulist-button";
ulistButton.title = "Elenco puntato <ul> Ctrl+U"; ulistButton.title = "Bulleted List <ul> Ctrl+U";
ulistButton.XShift = "-140px"; ulistButton.XShift = "-140px";
ulistButton.textOp = function(chunk, postProcessing, useDefaultText){ ulistButton.textOp = function(chunk, postProcessing, useDefaultText){
command.doList(chunk, postProcessing, false, useDefaultText); command.doList(chunk, postProcessing, false, useDefaultText);
...@@ -1075,7 +1075,7 @@ Attacklab.wmdBase = function(){ ...@@ -1075,7 +1075,7 @@ Attacklab.wmdBase = function(){
var headingButton = document.createElement("li"); var headingButton = document.createElement("li");
headingButton.className = "wmd-button"; headingButton.className = "wmd-button";
headingButton.id = "wmd-heading-button"; headingButton.id = "wmd-heading-button";
headingButton.title = "Titolo <h1>/<h2> Ctrl+H"; headingButton.title = "Heading <h1>/<h2> Ctrl+H";
headingButton.XShift = "-160px"; headingButton.XShift = "-160px";
headingButton.textOp = command.doHeading; headingButton.textOp = command.doHeading;
setupButton(headingButton, true); setupButton(headingButton, true);
...@@ -1084,7 +1084,7 @@ Attacklab.wmdBase = function(){ ...@@ -1084,7 +1084,7 @@ Attacklab.wmdBase = function(){
var hrButton = document.createElement("li"); var hrButton = document.createElement("li");
hrButton.className = "wmd-button"; hrButton.className = "wmd-button";
hrButton.id = "wmd-hr-button"; hrButton.id = "wmd-hr-button";
hrButton.title = "Linea orizzontale <hr> Ctrl+R"; hrButton.title = "Horizontal Rule <hr> Ctrl+R";
hrButton.XShift = "-180px"; hrButton.XShift = "-180px";
hrButton.textOp = command.doHorizontalRule; hrButton.textOp = command.doHorizontalRule;
setupButton(hrButton, true); setupButton(hrButton, true);
...@@ -1098,7 +1098,7 @@ Attacklab.wmdBase = function(){ ...@@ -1098,7 +1098,7 @@ Attacklab.wmdBase = function(){
var undoButton = document.createElement("li"); var undoButton = document.createElement("li");
undoButton.className = "wmd-button"; undoButton.className = "wmd-button";
undoButton.id = "wmd-undo-button"; undoButton.id = "wmd-undo-button";
undoButton.title = "Annulla - Ctrl+Z"; undoButton.title = "Undo - Ctrl+Z";
undoButton.XShift = "-200px"; undoButton.XShift = "-200px";
undoButton.execute = function(manager){ undoButton.execute = function(manager){
manager.undo(); manager.undo();
...@@ -1109,13 +1109,13 @@ Attacklab.wmdBase = function(){ ...@@ -1109,13 +1109,13 @@ Attacklab.wmdBase = function(){
var redoButton = document.createElement("li"); var redoButton = document.createElement("li");
redoButton.className = "wmd-button"; redoButton.className = "wmd-button";
redoButton.id = "wmd-redo-button"; redoButton.id = "wmd-redo-button";
redoButton.title = "Ripeti - Ctrl+Y"; redoButton.title = "Redo - Ctrl+Y";
if (/win/.test(nav.platform.toLowerCase())) { if (/win/.test(nav.platform.toLowerCase())) {
redoButton.title = "Ripeti - Ctrl+Y"; redoButton.title = "Redo - Ctrl+Y";
} }
else { else {
// mac and other non-Windows platforms // mac and other non-Windows platforms
redoButton.title = "Ripeti - Ctrl+Shift+Z"; redoButton.title = "Redo - Ctrl+Shift+Z";
} }
redoButton.XShift = "-220px"; redoButton.XShift = "-220px";
redoButton.execute = function(manager){ redoButton.execute = function(manager){
......
...@@ -102,7 +102,7 @@ Attacklab.wmdBase = function(){ ...@@ -102,7 +102,7 @@ Attacklab.wmdBase = function(){
// The link and title for the help button // The link and title for the help button
var helpLink = "http://daringfireball.net/projects/markdown/syntax"; var helpLink = "http://daringfireball.net/projects/markdown/syntax";
var helpHoverTitle = "MarkDown Syntax"; var helpHoverTitle = "Sintassi MarkDown";
var helpTarget = "_blank"; var helpTarget = "_blank";
// ------------------------------------------------------------------- // -------------------------------------------------------------------
...@@ -985,7 +985,7 @@ Attacklab.wmdBase = function(){ ...@@ -985,7 +985,7 @@ Attacklab.wmdBase = function(){
var boldButton = document.createElement("li"); var boldButton = document.createElement("li");
boldButton.className = "wmd-button"; boldButton.className = "wmd-button";
boldButton.id = "wmd-bold-button"; boldButton.id = "wmd-bold-button";
boldButton.title = "Strong <strong> Ctrl+B"; boldButton.title = "Grassetto <strong> Ctrl+B";
boldButton.XShift = "0px"; boldButton.XShift = "0px";
boldButton.textOp = command.doBold; boldButton.textOp = command.doBold;
setupButton(boldButton, true); setupButton(boldButton, true);
...@@ -994,7 +994,7 @@ Attacklab.wmdBase = function(){ ...@@ -994,7 +994,7 @@ Attacklab.wmdBase = function(){
var italicButton = document.createElement("li"); var italicButton = document.createElement("li");
italicButton.className = "wmd-button"; italicButton.className = "wmd-button";
italicButton.id = "wmd-italic-button"; italicButton.id = "wmd-italic-button";
italicButton.title = "Emphasis <em> Ctrl+I"; italicButton.title = "Corsivo <em> Ctrl+I";
italicButton.XShift = "-20px"; italicButton.XShift = "-20px";
italicButton.textOp = command.doItalic; italicButton.textOp = command.doItalic;
setupButton(italicButton, true); setupButton(italicButton, true);
...@@ -1008,7 +1008,7 @@ Attacklab.wmdBase = function(){ ...@@ -1008,7 +1008,7 @@ Attacklab.wmdBase = function(){
var linkButton = document.createElement("li"); var linkButton = document.createElement("li");
linkButton.className = "wmd-button"; linkButton.className = "wmd-button";
linkButton.id = "wmd-link-button"; linkButton.id = "wmd-link-button";
linkButton.title = "Hyperlink <a> Ctrl+L"; linkButton.title = "Collegamento <a> Ctrl+L";
linkButton.XShift = "-40px"; linkButton.XShift = "-40px";
linkButton.textOp = function(chunk, postProcessing, useDefaultText){ linkButton.textOp = function(chunk, postProcessing, useDefaultText){
return command.doLinkOrImage(chunk, postProcessing, false); return command.doLinkOrImage(chunk, postProcessing, false);
...@@ -1019,7 +1019,7 @@ Attacklab.wmdBase = function(){ ...@@ -1019,7 +1019,7 @@ Attacklab.wmdBase = function(){
var quoteButton = document.createElement("li"); var quoteButton = document.createElement("li");
quoteButton.className = "wmd-button"; quoteButton.className = "wmd-button";
quoteButton.id = "wmd-quote-button"; quoteButton.id = "wmd-quote-button";
quoteButton.title = "Blockquote <blockquote> Ctrl+Q"; quoteButton.title = "Citazione <blockquote> Ctrl+Q";
quoteButton.XShift = "-60px"; quoteButton.XShift = "-60px";
quoteButton.textOp = command.doBlockquote; quoteButton.textOp = command.doBlockquote;
setupButton(quoteButton, true); setupButton(quoteButton, true);
...@@ -1028,7 +1028,7 @@ Attacklab.wmdBase = function(){ ...@@ -1028,7 +1028,7 @@ Attacklab.wmdBase = function(){
var codeButton = document.createElement("li"); var codeButton = document.createElement("li");
codeButton.className = "wmd-button"; codeButton.className = "wmd-button";
codeButton.id = "wmd-code-button"; codeButton.id = "wmd-code-button";
codeButton.title = "Code Sample <pre><code> Ctrl+K"; codeButton.title = "Codice sorgente <pre><code> Ctrl+K";
codeButton.XShift = "-80px"; codeButton.XShift = "-80px";
codeButton.textOp = command.doCode; codeButton.textOp = command.doCode;
setupButton(codeButton, true); setupButton(codeButton, true);
...@@ -1037,7 +1037,7 @@ Attacklab.wmdBase = function(){ ...@@ -1037,7 +1037,7 @@ Attacklab.wmdBase = function(){
var imageButton = document.createElement("li"); var imageButton = document.createElement("li");
imageButton.className = "wmd-button"; imageButton.className = "wmd-button";
imageButton.id = "wmd-image-button"; imageButton.id = "wmd-image-button";
imageButton.title = "Image <img> Ctrl+G"; imageButton.title = "Immagine <img> Ctrl+G";
imageButton.XShift = "-100px"; imageButton.XShift = "-100px";
imageButton.textOp = function(chunk, postProcessing, useDefaultText){ imageButton.textOp = function(chunk, postProcessing, useDefaultText){
return command.doLinkOrImage(chunk, postProcessing, true); return command.doLinkOrImage(chunk, postProcessing, true);
...@@ -1053,7 +1053,7 @@ Attacklab.wmdBase = function(){ ...@@ -1053,7 +1053,7 @@ Attacklab.wmdBase = function(){
var olistButton = document.createElement("li"); var olistButton = document.createElement("li");
olistButton.className = "wmd-button"; olistButton.className = "wmd-button";
olistButton.id = "wmd-olist-button"; olistButton.id = "wmd-olist-button";
olistButton.title = "Numbered List <ol> Ctrl+O"; olistButton.title = "Elenco numerato <ol> Ctrl+O";
olistButton.XShift = "-120px"; olistButton.XShift = "-120px";
olistButton.textOp = function(chunk, postProcessing, useDefaultText){ olistButton.textOp = function(chunk, postProcessing, useDefaultText){
command.doList(chunk, postProcessing, true, useDefaultText); command.doList(chunk, postProcessing, true, useDefaultText);
...@@ -1064,7 +1064,7 @@ Attacklab.wmdBase = function(){ ...@@ -1064,7 +1064,7 @@ Attacklab.wmdBase = function(){
var ulistButton = document.createElement("li"); var ulistButton = document.createElement("li");
ulistButton.className = "wmd-button"; ulistButton.className = "wmd-button";
ulistButton.id = "wmd-ulist-button"; ulistButton.id = "wmd-ulist-button";
ulistButton.title = "Bulleted List <ul> Ctrl+U"; ulistButton.title = "Elenco puntato <ul> Ctrl+U";
ulistButton.XShift = "-140px"; ulistButton.XShift = "-140px";
ulistButton.textOp = function(chunk, postProcessing, useDefaultText){ ulistButton.textOp = function(chunk, postProcessing, useDefaultText){
command.doList(chunk, postProcessing, false, useDefaultText); command.doList(chunk, postProcessing, false, useDefaultText);
...@@ -1075,7 +1075,7 @@ Attacklab.wmdBase = function(){ ...@@ -1075,7 +1075,7 @@ Attacklab.wmdBase = function(){
var headingButton = document.createElement("li"); var headingButton = document.createElement("li");
headingButton.className = "wmd-button"; headingButton.className = "wmd-button";
headingButton.id = "wmd-heading-button"; headingButton.id = "wmd-heading-button";
headingButton.title = "Heading <h1>/<h2> Ctrl+H"; headingButton.title = "Titolo <h1>/<h2> Ctrl+H";
headingButton.XShift = "-160px"; headingButton.XShift = "-160px";
headingButton.textOp = command.doHeading; headingButton.textOp = command.doHeading;
setupButton(headingButton, true); setupButton(headingButton, true);
...@@ -1084,7 +1084,7 @@ Attacklab.wmdBase = function(){ ...@@ -1084,7 +1084,7 @@ Attacklab.wmdBase = function(){
var hrButton = document.createElement("li"); var hrButton = document.createElement("li");
hrButton.className = "wmd-button"; hrButton.className = "wmd-button";
hrButton.id = "wmd-hr-button"; hrButton.id = "wmd-hr-button";
hrButton.title = "Horizontal Rule <hr> Ctrl+R"; hrButton.title = "Linea orizzontale <hr> Ctrl+R";
hrButton.XShift = "-180px"; hrButton.XShift = "-180px";
hrButton.textOp = command.doHorizontalRule; hrButton.textOp = command.doHorizontalRule;
setupButton(hrButton, true); setupButton(hrButton, true);
...@@ -1098,7 +1098,7 @@ Attacklab.wmdBase = function(){ ...@@ -1098,7 +1098,7 @@ Attacklab.wmdBase = function(){
var undoButton = document.createElement("li"); var undoButton = document.createElement("li");
undoButton.className = "wmd-button"; undoButton.className = "wmd-button";
undoButton.id = "wmd-undo-button"; undoButton.id = "wmd-undo-button";
undoButton.title = "Undo - Ctrl+Z"; undoButton.title = "Annulla - Ctrl+Z";
undoButton.XShift = "-200px"; undoButton.XShift = "-200px";
undoButton.execute = function(manager){ undoButton.execute = function(manager){
manager.undo(); manager.undo();
...@@ -1109,13 +1109,13 @@ Attacklab.wmdBase = function(){ ...@@ -1109,13 +1109,13 @@ Attacklab.wmdBase = function(){
var redoButton = document.createElement("li"); var redoButton = document.createElement("li");
redoButton.className = "wmd-button"; redoButton.className = "wmd-button";
redoButton.id = "wmd-redo-button"; redoButton.id = "wmd-redo-button";
redoButton.title = "Redo - Ctrl+Y"; redoButton.title = "Ripeti - Ctrl+Y";
if (/win/.test(nav.platform.toLowerCase())) { if (/win/.test(nav.platform.toLowerCase())) {
redoButton.title = "Redo - Ctrl+Y"; redoButton.title = "Ripeti - Ctrl+Y";
} }
else { else {
// mac and other non-Windows platforms // mac and other non-Windows platforms
redoButton.title = "Redo - Ctrl+Shift+Z"; redoButton.title = "Ripeti - Ctrl+Shift+Z";
} }
redoButton.XShift = "-220px"; redoButton.XShift = "-220px";
redoButton.execute = function(manager){ redoButton.execute = function(manager){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment