mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 20:27:57 +01:00
minor formatting fixes
This commit is contained in:
@@ -219,7 +219,7 @@ liberator.Addressbook = function () //{{{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
//}}}
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -147,10 +147,10 @@ liberator.Bookmarks = function () //{{{
|
|||||||
list += "<tr><td>" + indicator + "<td>" + Math.abs(num) + "</td><td style=\"width: 250px; max-width: 500px; overflow: hidden;\">" + title +
|
list += "<tr><td>" + indicator + "<td>" + Math.abs(num) + "</td><td style=\"width: 250px; max-width: 500px; overflow: hidden;\">" + title +
|
||||||
"</td><td><a href=\"#\" class=\"hl-URL jump-list\">" + uri + "</a></td></tr>";
|
"</td><td><a href=\"#\" class=\"hl-URL jump-list\">" + uri + "</a></td></tr>";
|
||||||
num++;
|
num++;
|
||||||
}
|
}
|
||||||
|
|
||||||
list += "</table>";
|
list += "</table>";
|
||||||
|
|
||||||
liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
|
liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
|
||||||
},
|
},
|
||||||
{}
|
{}
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ liberator.Commands = function () //{{{
|
|||||||
// @param allowUnknownOptions: -foo won't result in an error, if -foo isn't
|
// @param allowUnknownOptions: -foo won't result in an error, if -foo isn't
|
||||||
// specified in "options"
|
// specified in "options"
|
||||||
// TODO: should it handle comments?
|
// TODO: should it handle comments?
|
||||||
parseArgs: function(str, options, argCount, allowUnknownOptions)
|
parseArgs: function (str, options, argCount, allowUnknownOptions)
|
||||||
{
|
{
|
||||||
// returns [count, parsed_argument]
|
// returns [count, parsed_argument]
|
||||||
function getNextArg(str)
|
function getNextArg(str)
|
||||||
|
|||||||
@@ -592,8 +592,8 @@ liberator.Hints = function () //{{{
|
|||||||
validator: function (value) { return /^(?:contains|wordstartswith|firstletters|custom)$/.test(value); },
|
validator: function (value) { return /^(?:contains|wordstartswith|firstletters|custom)$/.test(value); },
|
||||||
completer: function (filter)
|
completer: function (filter)
|
||||||
{
|
{
|
||||||
return ["contains","wordstartswith","firstletters","custom"]
|
return ["contains", "wordstartswith", "firstletters", "custom"]
|
||||||
.map(function(m){ return [m,""] });
|
.map(function (m){ return [m, ""] });
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ const liberator = (function () //{{{
|
|||||||
{
|
{
|
||||||
liberator.log("Couldn't set titlestring", 3);
|
liberator.log("Couldn't set titlestring", 3);
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
liberator.options.add(["verbose", "vbs"],
|
liberator.options.add(["verbose", "vbs"],
|
||||||
@@ -104,7 +104,7 @@ const liberator = (function () //{{{
|
|||||||
"Use visual bell instead of beeping on errors",
|
"Use visual bell instead of beeping on errors",
|
||||||
"boolean", false,
|
"boolean", false,
|
||||||
{
|
{
|
||||||
setter: function (value) { liberator.options.setPref("accessibility.typeaheadfind.enablesound", !value); },
|
setter: function (value) { liberator.options.setPref("accessibility.typeaheadfind.enablesound", !value); }
|
||||||
});
|
});
|
||||||
|
|
||||||
liberator.options.add(["visualbellstyle", "t_vb"],
|
liberator.options.add(["visualbellstyle", "t_vb"],
|
||||||
@@ -360,7 +360,7 @@ const liberator = (function () //{{{
|
|||||||
{
|
{
|
||||||
completer: function (filter)
|
completer: function (filter)
|
||||||
{
|
{
|
||||||
if (/^:/.test(filter))
|
if (/^:/.test(filter))
|
||||||
return liberator.completion.ex(filter);
|
return liberator.completion.ex(filter);
|
||||||
else
|
else
|
||||||
return liberator.completion.javascript(filter);
|
return liberator.completion.javascript(filter);
|
||||||
@@ -1034,7 +1034,8 @@ const liberator = (function () //{{{
|
|||||||
thread.dispatch(new CallbackEvent(func, args), thread.DISPATCH_SYNC);
|
thread.dispatch(new CallbackEvent(func, args), thread.DISPATCH_SYNC);
|
||||||
}
|
}
|
||||||
|
|
||||||
}; //}}}
|
};
|
||||||
|
//}}}
|
||||||
})(); //}}}
|
})(); //}}}
|
||||||
|
|
||||||
// called when the chrome is fully loaded and before the main window is shown
|
// called when the chrome is fully loaded and before the main window is shown
|
||||||
|
|||||||
@@ -1045,7 +1045,7 @@ liberator.Mail = function () //{{{
|
|||||||
{
|
{
|
||||||
var values = [[true, 1, gDisallow_classes_no_html], // plaintext
|
var values = [[true, 1, gDisallow_classes_no_html], // plaintext
|
||||||
[false, 0, 0], // HTML
|
[false, 0, 0], // HTML
|
||||||
[false, 3, gDisallow_classes_no_html]]; // sanitized/simple HTML
|
[false, 3, gDisallow_classes_no_html]]; // sanitized/simple HTML
|
||||||
|
|
||||||
if (typeof(value) != "number" || value < 0 || value > 2)
|
if (typeof(value) != "number" || value < 0 || value > 2)
|
||||||
value = 1;
|
value = 1;
|
||||||
@@ -1056,7 +1056,6 @@ liberator.Mail = function () //{{{
|
|||||||
MsgReload();
|
MsgReload();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//}}}
|
//}}}
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ liberator.config = {
|
|||||||
isComposeWindow: false,
|
isComposeWindow: false,
|
||||||
|
|
||||||
autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"],
|
autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"],
|
||||||
["PageLoadPre", "Triggered after a page load is initiated"],
|
["PageLoadPre", "Triggered after a page load is initiated"],
|
||||||
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
|
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
|
||||||
["Quit", "Triggered before exiting Thunderbird"],
|
["Quit", "Triggered before exiting Thunderbird"],
|
||||||
["Startup", "Triggered after Thunderbird starts"]],
|
["Startup", "Triggered after Thunderbird starts"]],
|
||||||
|
|||||||
@@ -1301,7 +1301,7 @@ liberator.StatusLine = function () //{{{
|
|||||||
else
|
else
|
||||||
document.getElementById("status-bar").collapsed = false;
|
document.getElementById("status-bar").collapsed = false;
|
||||||
},
|
},
|
||||||
validator: function (value) { return (value in [0,1,2]); },
|
validator: function (value) { return (value in [0, 1, 2]); },
|
||||||
completer: function (filter)
|
completer: function (filter)
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user