Skip to content

Commit

Permalink
Update web files
Browse files Browse the repository at this point in the history
  • Loading branch information
ilpianista committed May 11, 2021
1 parent ac8d10d commit 3edfb16
Show file tree
Hide file tree
Showing 38 changed files with 1,523 additions and 2,616 deletions.
233 changes: 116 additions & 117 deletions TRANSMISSION/files/etc/frontview/addons/ui/TRANSMISSION/web/index.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $.fn.tabbedDialog = function (dialog_opts) {
this.find('.ui-tab-dialog-close').css({'position':'absolute','right':'0', 'top':'16px'});
this.find('.ui-tab-dialog-close > a').css({'float':'none','padding':'0'});
var tabul = this.find('ul:first');
this.parent().addClass('ui-tabs').prepend(tabul).draggable('option','handle',tabul);
this.parent().addClass('ui-tabs').prepend(tabul).draggable('option','handle',tabul);
this.siblings('.ui-dialog-titlebar').remove();
tabul.addClass('ui-dialog-titlebar');
}
Expand Down Expand Up @@ -64,11 +64,7 @@ $(document).ready(function() {
$("label[for=torrent_upload_url]").text("URL: ");
} else {
// Fix for non-Safari-3 browsers: dark borders to replace shadows.
// Opera messes up the menu if we use a border on .trans_menu
// div.outerbox so use ul instead
$('.trans_menu ul, div#jqContextMenu, div.dialog_container div.dialog_window').css('border', '1px solid #777');
// and this kills the border we used to have
$('.trans_menu div.outerbox').css('border', 'none');
$('div.dialog_container div.dialog_window').css('border', '1px solid #777');
}

// Initialise the dialog controller
Expand Down Expand Up @@ -250,7 +246,7 @@ jQuery.fn.forceNumeric = function () {
$(this).keydown(function (e) {
var key = e.which || e.keyCode;
return !e.shiftKey && !e.altKey && !e.ctrlKey &&
// numbers
// numbers
key >= 48 && key <= 57 ||
// Numeric keypad
key >= 96 && key <= 105 ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Dialog.prototype = {
* Constructor
*/
initialize: function() {

/*
* Private Interface Variables
*/
Expand All @@ -24,9 +24,8 @@ Dialog.prototype = {
this._message = $('#dialog_message');
this._cancel_button = $('#dialog_cancel_button');
this._confirm_button = $('#dialog_confirm_button');
this._callback_function = '';
this._callback_data = null;

this._callback = null;

// Observe the buttons
this._cancel_button.bind('click', {dialog: this}, this.onCancelClicked);
this._confirm_button.bind('click', {dialog: this}, this.onConfirmClicked);
Expand Down Expand Up @@ -58,7 +57,7 @@ Dialog.prototype = {
onConfirmClicked: function(event)
{
var dialog = event.data.dialog;
eval(dialog._callback_function + "(dialog._callback_data)");
dialog._callback();
dialog.hideDialog();
},

Expand All @@ -72,7 +71,7 @@ Dialog.prototype = {
* Display a confirm dialog
*/
confirm: function(dialog_heading, dialog_message, confirm_button_label,
callback_function, callback_data, cancel_button_label)
callback, cancel_button_label)
{
if (!isMobileDevice)
$('.dialog_container').hide();
Expand All @@ -81,8 +80,7 @@ Dialog.prototype = {
setTextContent(this._cancel_button[0], cancel_button_label || 'Cancel');
setTextContent(this._confirm_button[0], confirm_button_label);
this._confirm_button.show();
this._callback_function = callback_function;
this._callback_data = callback_data;
this._callback = callback;
$('body').addClass('dialog_showing');
this._container.show();
transmission.updateButtonStates();
Expand Down Expand Up @@ -110,6 +108,6 @@ Dialog.prototype = {
transmission.hideMobileAddressbar();
this._container.show();
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ function FileRow(torrent, depth, name, indices, even)
{
var pct = 100 * (fields.size ? (fields.have / fields.size) : 1.0),
c = [ Transmission.fmt.size(fields.have),
' of ',
Transmission.fmt.size(fields.size),
' (',
Transmission.fmt.percentString(pct),
'%)' ].join('');
' of ',
Transmission.fmt.size(fields.size),
' (',
Transmission.fmt.percentString(pct),
'%)' ].join('');
setTextContent(elements.progress, c);
},
refreshImpl = function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ Transmission.fmt = (function()
return [ n.toStringWithCommas(), this.ngettext(msgid,msgid_plural,n) ].join(' ');
},

peerStatus: function( flagStr )
{
var formattedFlags = [];
peerStatus: function( flagStr )
{
var formattedFlags = [];
for (var i=0, flag; flag=flagStr[i]; ++i)
{
var explanation = null;
Expand All @@ -301,13 +301,13 @@ Transmission.fmt = (function()
case "T": explanation = "Peer is connected via uTP"; break;
}

if (!explanation) {
formattedFlags.push(flag);
} else {
formattedFlags.push("<span title=\"" + flag + ': ' + explanation + "\">" + flag + "</span>");
}
}
return formattedFlags.join('');
if (!explanation) {
formattedFlags.push(flag);
} else {
formattedFlags.push("<span title=\"" + flag + ': ' + explanation + "\">" + flag + "</span>");
}
}
return formattedFlags.join('');
}
}
})();
Loading

0 comments on commit 3edfb16

Please sign in to comment.