@ -8,6 +8,8 @@
<script src="scripts/lib/mootools-1.2-core-yc.js"></script>
<script src="scripts/lib/mootools-1.2-more.js"></script>
<script>
'use strict';
window.addEvent('domready', function() {
var setLocationKeyboardEvents = new Keyboard({
defaultEventType: 'keydown',
var hashes = new URI().getData('hashes').split('|');
$('cancelBtn').focus();
@ -135,6 +135,8 @@
</div>
</form>
var encodedUrls = new URI().getData('urls');
if (encodedUrls) {
var urls = [];
@ -22,6 +22,8 @@
<div class="clear"></div>
setDlLimit = function() {
var limit = $("dllimitUpdatevalue").value.toInt() * 1024;
@ -23,6 +23,8 @@
var categoriesFilterContextMenu = new CategoriesFilterContextMenu({
targets: '.categoriesFilterContextMenuTarget',
menu: 'categoriesFilterMenu',
@ -9,6 +9,8 @@
<script src="scripts/misc.js?locale=${LANG}"></script>
var newCategoryKeyboardEvents = new Keyboard({
events: {
@ -25,6 +25,8 @@
// Tabs
MochaUI.initializeTabs('preferencesTabs');
@ -814,6 +814,8 @@
<div style="text-align: center; margin-top: 1em;"><input type="button" value="QBT_TR(Save)QBT_TR[CONTEXT=HttpServer]" onclick="applyPreferences();" /></div>
// Downloads tab
var WatchedFoldersTable = new HtmlTable($("watched_folders_tab"));
@ -152,6 +152,8 @@
torrentPeersTable.setup('torrentPeersTableDiv', 'torrentPeersTableFixedHeaderDiv', null);
var selectedTab = $(getLocalStorageItem('selected_tab', 'PropGeneralLink'));
if (selectedTab)
var renameKeyboardEvents = new Keyboard({
* THE SOFTWARE.
*/
torrentsTable = new TorrentsTable();
torrentPeersTable = new TorrentPeersTable();
searchResultsTable = new SearchResultsTable();
@ -1,3 +1,5 @@
var lastShownContexMenu = null;
var ContextMenu = new Class({
//implements
@ -21,6 +21,8 @@
var categories = {};
var defaultSavePath = "";
@ -31,6 +31,8 @@
**************************************************************/
var DynamicTableHeaderContextMenuClass = null;
var ProgressColumnWidth = -1;
/*
* JS counterpart of the function in src/misc.cpp
it in the onContentLoaded function of the new window.
----------------------------------------------------------------- */
/* Define localStorage object for older browsers */
if (typeof localStorage == 'undefined') {
window['localStorage'] = {
var ProgressBar = new Class({
initialize: function(value, parameters) {
var vals = {
var is_seed = true;
var current_hash = "";
var clearData = function() {
$('time_elapsed').set('html', '');
$('eta').set('html', '');
var trackersDynTable = new Class({
initialize: function() {},
var webseedsDynTable = new Class({
var UseGlobalLimit = -2;
var NoLimit = -1;
@ -16,6 +16,8 @@
//create a context menu
var torrentsTableContextMenu = new TorrentsTableContextMenu({
targets: '.torrentsTableContextMenuTarget',
@ -122,6 +122,8 @@
</fieldset>
var submitted = false;
$('uploadForm').addEventListener("submit", function() {
setUpLimit = function() {
var limit = $("uplimitUpdatevalue").value.toInt() * 1024;
<link rel="stylesheet" type="text/css" href="css/login.css" />
window.onload = function() {
$('username').focus();
$('username').select();