diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2015-05-28 17:11:42 +0100 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2015-05-28 17:11:42 +0100 |
commit | 4b8290f563ad5ac84dd92fb8ca97ba5970c472b3 (patch) | |
tree | 7dca7c98013775628c2b4d1596e0be41d8d4bda2 /lib/plugins/extension/script.js | |
parent | 9a734b7aaba1445e06c1ccb95e59f54e01688d45 (diff) | |
parent | 4286c64e98499b93056c09498c10709f8909befd (diff) | |
download | rpg-4b8290f563ad5ac84dd92fb8ca97ba5970c472b3.tar.gz rpg-4b8290f563ad5ac84dd92fb8ca97ba5970c472b3.tar.bz2 |
Merge branch 'master' into ioreplaceinfile
Diffstat (limited to 'lib/plugins/extension/script.js')
-rw-r--r-- | lib/plugins/extension/script.js | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/plugins/extension/script.js b/lib/plugins/extension/script.js index fab88162d..bc1bf8b12 100644 --- a/lib/plugins/extension/script.js +++ b/lib/plugins/extension/script.js @@ -110,4 +110,23 @@ jQuery(function(){ ); }); -});
\ No newline at end of file + /** + Create section for enabling/disabling viewing options + */ + if ( $extmgr.find('.plugins, .templates').hasClass('active') ) { + var $displayOpts = jQuery('<p>', { id: 'extension__viewoptions'} ).appendTo($extmgr.find( '.panelHeader' )); + + $displayOpts.append(LANG.plugins.extension.display_viewoptions); + + var displayOptionsHandler = function(){ + jQuery('#extension__list').toggleClass( this.name ); + }; + + jQuery(['enabled', 'disabled', 'updatable']).each(function(index, chkName){ + + var $label = jQuery( '<label></label>' ).appendTo($displayOpts); + jQuery( '<input />', { type: 'checkbox', name: chkName }).change(displayOptionsHandler).appendTo($label).click(); + jQuery( '<span/>' ).append(LANG.plugins.extension['display_'+chkName]).appendTo($label); + }); + } +}); |