mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
(trunk web) remove a handful of unnecessary wrapper functions.
This commit is contained in:
parent
2cff49a247
commit
465d57eb71
1 changed files with 9 additions and 27 deletions
|
@ -43,15 +43,15 @@ Transmission.prototype =
|
||||||
$('#resume_selected_link').click(function(e) { tr.startSelectedClicked(e); });
|
$('#resume_selected_link').click(function(e) { tr.startSelectedClicked(e); });
|
||||||
$('#remove_link').click(function(e) { tr.removeClicked(e); });
|
$('#remove_link').click(function(e) { tr.removeClicked(e); });
|
||||||
$('#prefs_save_button').click(function(e) { tr.savePrefsClicked(e); return false;});
|
$('#prefs_save_button').click(function(e) { tr.savePrefsClicked(e); return false;});
|
||||||
$('#prefs_cancel_button').click(function(e) { tr.cancelPrefsClicked(e); return false; });
|
$('#prefs_cancel_button').click(function(e) { tr.hidePrefsDialog(); return false; });
|
||||||
$('#block_update_button').click(function(e) { tr.blocklistUpdateClicked(e); return false; });
|
$('#block_update_button').click(function(e) { tr.remote.updateBlocklist(); return false; });
|
||||||
$('#stats_close_button').click(function(e) { tr.closeStatsClicked(e); return false; });
|
$('#stats_close_button').click(function(e) { tr.hideStatsDialog(); return false; });
|
||||||
$('.inspector_tab').click(function(e) { tr.inspectorTabClicked(e, this); });
|
$('.inspector_tab').click(function(e) { tr.inspectorTabClicked(e, this); });
|
||||||
$('#files_select_all').live('click', function(e) { tr.filesSelectAllClicked(e, this); });
|
$('#files_select_all').live('click', function(e) { tr.filesSelectAllClicked(e, this); });
|
||||||
$('#files_deselect_all').live('click', function(e) { tr.filesDeselectAllClicked(e, this); });
|
$('#files_deselect_all').live('click', function(e) { tr.filesDeselectAllClicked(e, this); });
|
||||||
$('#open_link').click(function(e) { tr.openTorrentClicked(e); });
|
$('#open_link').click(function(e) { tr.openTorrentClicked(e); });
|
||||||
$('#upload_confirm_button').click(function(e) { tr.confirmUploadClicked(e); return false;});
|
$('#upload_confirm_button').click(function(e) { tr.confirmUploadClicked(e); return false;});
|
||||||
$('#upload_cancel_button').click(function(e) { tr.cancelUploadClicked(e); return false; });
|
$('#upload_cancel_button').click(function(e) { tr.hideUploadDialog(); return false; });
|
||||||
$('#turtle_button').click(function() { tr.toggleTurtleClicked(); return false; });
|
$('#turtle_button').click(function() { tr.toggleTurtleClicked(); return false; });
|
||||||
$('#compact-button').click(function() { tr.toggleCompactClicked(); return false; });
|
$('#compact-button').click(function() { tr.toggleCompactClicked(); return false; });
|
||||||
$('#prefs_tab_general_tab').click(function() { changeTab(this, 'prefs_tab_general'); });
|
$('#prefs_tab_general_tab').click(function() { changeTab(this, 'prefs_tab_general'); });
|
||||||
|
@ -618,19 +618,11 @@ Transmission.prototype =
|
||||||
this.updateButtonStates();
|
this.updateButtonStates();
|
||||||
},
|
},
|
||||||
|
|
||||||
cancelUploadClicked: function() {
|
|
||||||
this.hideUploadDialog();
|
|
||||||
},
|
|
||||||
|
|
||||||
confirmUploadClicked: function() {
|
confirmUploadClicked: function() {
|
||||||
this.uploadTorrentFile(true);
|
this.uploadTorrentFile(true);
|
||||||
this.hideUploadDialog();
|
this.hideUploadDialog();
|
||||||
},
|
},
|
||||||
|
|
||||||
cancelPrefsClicked: function() {
|
|
||||||
this.hidePrefsDialog();
|
|
||||||
},
|
|
||||||
|
|
||||||
savePrefsClicked: function()
|
savePrefsClicked: function()
|
||||||
{
|
{
|
||||||
// handle the clutch prefs locally
|
// handle the clutch prefs locally
|
||||||
|
@ -681,27 +673,17 @@ Transmission.prototype =
|
||||||
|
|
||||||
tr.hidePrefsDialog();
|
tr.hidePrefsDialog();
|
||||||
},
|
},
|
||||||
blocklistUpdateClicked: function() {
|
|
||||||
var tr = this;
|
|
||||||
tr.remote.updateBlocklist();
|
|
||||||
},
|
|
||||||
|
|
||||||
closeStatsClicked: function() {
|
|
||||||
this.hideStatsDialog();
|
|
||||||
},
|
|
||||||
|
|
||||||
removeClicked: function(ev) {
|
removeClicked: function(ev) {
|
||||||
var tr = this;
|
if (this.isButtonEnabled(ev)) {
|
||||||
if (tr.isButtonEnabled(ev)) {
|
this.removeSelectedTorrents();
|
||||||
tr.removeSelectedTorrents();
|
this.hideiPhoneAddressbar();
|
||||||
tr.hideiPhoneAddressbar();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
toggleInspectorClicked: function(ev) {
|
toggleInspectorClicked: function(ev) {
|
||||||
var tr = this;
|
if (this.isButtonEnabled(ev))
|
||||||
if (tr.isButtonEnabled(ev))
|
this.toggleInspector();
|
||||||
tr.toggleInspector();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
inspectorTabClicked: function(ev, tab) {
|
inspectorTabClicked: function(ev, tab) {
|
||||||
|
|
Loading…
Reference in a new issue