PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` /* * Copyright (c) 2015 * * This file is licensed under the Affero General Public License version 3 * or later. * * See the COPYING-README file. * */ (function() { /** * @class OCA.Files.DetailTabView * @classdesc * * Base class for tab views to display file information. * */ var DetailTabView = OC.Backbone.View.extend({ tag: 'div', className: 'tab', /** * Tab label */ _label: null, _template: null, initialize: function(options) { options = options || {}; if (!this.id) { this.id = 'detailTabView' + DetailTabView._TAB_COUNT; DetailTabView._TAB_COUNT++; } if (options.order) { this.order = options.order || 0; } }, /** * Returns the tab label * * @return {String} label */ getLabel: function() { return 'Tab ' + this.id; }, /** * returns the jQuery object for HTML output * * @returns {jQuery} */ get$: function() { return this.$el; }, /** * Renders this details view * * @abstract */ render: function() { // to be implemented in subclass // FIXME: code is only for testing this.$el.html('
Hello ' + this.id + '
'); }, /** * Sets the file info to be displayed in the view * * @param {OCA.Files.FileInfoModel} fileInfo file info to set */ setFileInfo: function(fileInfo) { if (this.model !== fileInfo) { this.model = fileInfo; this.render(); } }, /** * Returns the file info. * * @return {OCA.Files.FileInfoModel} file info */ getFileInfo: function() { return this.model; }, /** * Load the next page of results */ nextPage: function() { // load the next page, if applicable }, /** * Returns whether the current tab is able to display * the given file info, for example based on mime type. * * @param {OCA.Files.FileInfoModel} fileInfo file info model * @return {bool} whether to display this tab */ canDisplay: function(fileInfo) { return true; } }); DetailTabView._TAB_COUNT = 0; OCA.Files = OCA.Files || {}; OCA.Files.DetailTabView = DetailTabView; })();