diff options
author | Gerry Weißbach <gerry.w@gammaproduction.de> | 2015-05-04 07:57:33 +0200 |
---|---|---|
committer | Gerry Weißbach <gerry.w@gammaproduction.de> | 2015-05-04 07:57:33 +0200 |
commit | abf17633a7157acf33d1cf76985b9221089d3fe8 (patch) | |
tree | ba619cd14ada9f0f4291d4293b4869520826b335 /lib/plugins | |
parent | 79a3bed0a23b6bef35eb12c6ccbb1f3301f6c621 (diff) | |
download | rpg-abf17633a7157acf33d1cf76985b9221089d3fe8.tar.gz rpg-abf17633a7157acf33d1cf76985b9221089d3fe8.tar.bz2 |
Add selection for the Installed Plugins tab
The viewing options should only be visible on the first tab - which is
the installed Plugins tab. (There seems to be no more direct way to
address this tab.)
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/extension/script.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/plugins/extension/script.js b/lib/plugins/extension/script.js index 825bcc928..db6a95e51 100644 --- a/lib/plugins/extension/script.js +++ b/lib/plugins/extension/script.js @@ -113,7 +113,9 @@ jQuery(function(){ /** Create section for enabling/disabling viewing options */ + if ( $extmgr.find('.tabs li:first-child').hasClass('active') ) { var $displayOpts = jQuery('<p>', { id: 'viewoptions'} ).appendTo($extmgr.find( '.panelHeader' )); + $displayOpts.append(LANG.plugins.extension.display_viewoptions); var displayOptionsHandler = function(){ @@ -126,4 +128,5 @@ jQuery(function(){ jQuery( '<input />', { type: 'checkbox', name: chkName }).change(displayOptionsHandler).appendTo($label).click(); jQuery( '<span/>' ).append(LANG.plugins.extension['display_'+chkName]).appendTo($label); }); + } }); |