diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-06-03 16:46:04 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-06-03 16:46:04 +0200 |
commit | f87a91fa00ee5e5731792c047029e5f15eb6a609 (patch) | |
tree | 41c086411d4e156736ee52ed6e0de8a8bdeb2f4f /apps/files | |
parent | cfc1d5623ed7d51da81b785f0ea871d0dc7c73a8 (diff) | |
parent | 1d0ac9a2c58ea265ce587e3e72729516be63fc38 (diff) | |
download | nextcloud-server-f87a91fa00ee5e5731792c047029e5f15eb6a609.tar.gz nextcloud-server-f87a91fa00ee5e5731792c047029e5f15eb6a609.zip |
Merge pull request #8837 from owncloud/issue/8720
Fix cursor and background of app navigation
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/css/files.css | 2 | ||||
-rw-r--r-- | apps/files/js/navigation.js | 4 | ||||
-rw-r--r-- | apps/files/tests/js/appSpec.js | 16 |
3 files changed, 11 insertions, 11 deletions
diff --git a/apps/files/css/files.css b/apps/files/css/files.css index 1d75c4e505c..501a216043c 100644 --- a/apps/files/css/files.css +++ b/apps/files/css/files.css @@ -368,7 +368,7 @@ table td.filename form { font-size:14px; margin-left:48px; margin-right:48px; } padding: 28px 14px 19px !important; } -#fileList .action.action-share-notification span, img, a { +#fileList .action.action-share-notification span, #fileList a { cursor: default !important; } diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js index c58a284e83f..b959e016e8c 100644 --- a/apps/files/js/navigation.js +++ b/apps/files/js/navigation.js @@ -82,13 +82,13 @@ } return; } - this.$el.find('li').removeClass('selected'); + this.$el.find('li').removeClass('active'); if (this.$currentContent) { this.$currentContent.addClass('hidden'); this.$currentContent.trigger(jQuery.Event('hide')); } this._activeItem = itemId; - this.$el.find('li[data-id=' + itemId + ']').addClass('selected'); + this.$el.find('li[data-id=' + itemId + ']').addClass('active'); this.$currentContent = $('#app-content-' + itemId); this.$currentContent.removeClass('hidden'); if (!options || !options.silent) { diff --git a/apps/files/tests/js/appSpec.js b/apps/files/tests/js/appSpec.js index a9bbab03ecb..99a73d0b01d 100644 --- a/apps/files/tests/js/appSpec.js +++ b/apps/files/tests/js/appSpec.js @@ -200,31 +200,31 @@ describe('OCA.Files.App tests', function() { expect(App.navigation.getActiveItem()).toEqual('other'); expect($('#app-content-files').hasClass('hidden')).toEqual(true); expect($('#app-content-other').hasClass('hidden')).toEqual(false); - expect($('li[data-id=files]').hasClass('selected')).toEqual(false); - expect($('li[data-id=other]').hasClass('selected')).toEqual(true); + expect($('li[data-id=files]').hasClass('active')).toEqual(false); + expect($('li[data-id=other]').hasClass('active')).toEqual(true); App._onPopState({view: 'files', dir: '/somedir'}); expect(App.navigation.getActiveItem()).toEqual('files'); expect($('#app-content-files').hasClass('hidden')).toEqual(false); expect($('#app-content-other').hasClass('hidden')).toEqual(true); - expect($('li[data-id=files]').hasClass('selected')).toEqual(true); - expect($('li[data-id=other]').hasClass('selected')).toEqual(false); + expect($('li[data-id=files]').hasClass('active')).toEqual(true); + expect($('li[data-id=other]').hasClass('active')).toEqual(false); }); it('clicking on navigation switches the panel visibility', function() { $('li[data-id=other]>a').click(); expect(App.navigation.getActiveItem()).toEqual('other'); expect($('#app-content-files').hasClass('hidden')).toEqual(true); expect($('#app-content-other').hasClass('hidden')).toEqual(false); - expect($('li[data-id=files]').hasClass('selected')).toEqual(false); - expect($('li[data-id=other]').hasClass('selected')).toEqual(true); + expect($('li[data-id=files]').hasClass('active')).toEqual(false); + expect($('li[data-id=other]').hasClass('active')).toEqual(true); $('li[data-id=files]>a').click(); expect(App.navigation.getActiveItem()).toEqual('files'); expect($('#app-content-files').hasClass('hidden')).toEqual(false); expect($('#app-content-other').hasClass('hidden')).toEqual(true); - expect($('li[data-id=files]').hasClass('selected')).toEqual(true); - expect($('li[data-id=other]').hasClass('selected')).toEqual(false); + expect($('li[data-id=files]').hasClass('active')).toEqual(true); + expect($('li[data-id=other]').hasClass('active')).toEqual(false); }); it('clicking on navigation sends "show" and "urlChanged" event', function() { var handler = sinon.stub(); |