Merge pull request #4677 from buinsky/WebUI_misc_fixes

WebUI: Misc fixes and improvements
This commit is contained in:
sledgehammer999
2016-01-30 12:11:46 -06:00
4 changed files with 26 additions and 9 deletions

View File

@@ -7,6 +7,17 @@
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
<script type="text/javascript" src="scripts/mootools-1.2-more.js" charset="utf-8"></script>
<script type="text/javascript">
var newLabelKeyboardEvents = new Keyboard({
defaultEventType: 'keydown',
events: {
'enter': function (event) {
$('newLabelButton').click();
event.preventDefault();
}
}
});
newLabelKeyboardEvents.activate();
window.addEvent('domready', function() {
$('newLabel').focus();
$('newLabelButton').addEvent('click', function(e) {

View File

@@ -107,4 +107,5 @@
<script type="text/javascript">
torrentPeersTable.setup('torrentPeersTable', 'torrentPeersTableHeader', null);
</script>
$(getLocalStorageItem('selected_tab', 'PropGeneralLink')).click();
</script>

View File

@@ -25,9 +25,15 @@
torrentsTable = new TorrentsTable();
torrentPeersTable = new TorrentPeersTable();
var updatePropertiesPanel = function(){};
var updateTorrentPeersData = function(){};
var updateMainData = function(){};
var updatePropertiesPanel = function () {};
var updateTorrentData = function () {};
var updateTrackersData = function () {};
var updateTorrentPeersData = function () {};
var updateWebSeedsData = function () {};
var updateTorrentFilesData = function () {};
var updateMainData = function () {};
var alternativeSpeedLimits = false;
var queueing_enabled = true;
var syncMainDataTimerPeriod = 1500;
@@ -578,8 +584,6 @@ window.addEvent('load', function () {
$('propertiesPanel_collapseToggle').addEvent('click', function(e){
updatePropertiesPanel();
});
$(getLocalStorageItem('selected_tab', 'PropGeneralLink')).click();
},
column : 'mainColumn',
height : prop_h