Server IP : 184.154.167.98 / Your IP : 3.139.87.151 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/contratos/apps/comments/js/ |
Upload File : |
/* * Copyright (c) 2016 * * This file is licensed under the Affero General Public License version 3 * or later. * * See the COPYING-README file. * */ (function(OC, OCA) { _.extend(OC.Files.Client, { PROPERTY_READMARKER: '{' + OC.Files.Client.NS_OWNCLOUD + '}readMarker' }); /** * @class OCA.Comments.CommentSummaryModel * @classdesc * * Model containing summary information related to comments * like the read marker. * */ var CommentSummaryModel = OC.Backbone.Model.extend( /** @lends OCA.Comments.CommentSummaryModel.prototype */ { sync: OC.Backbone.davSync, /** * Object type * * @type string */ _objectType: 'files', /** * Object id * * @type string */ _objectId: null, davProperties: { 'readMarker': OC.Files.Client.PROPERTY_READMARKER }, /** * Initializes the summary model * * @param {string} [options.objectType] object type * @param {string} [options.objectId] object id */ initialize: function(attrs, options) { options = options || {}; if (options.objectType) { this._objectType = options.objectType; } }, url: function() { return OC.linkToRemote('dav') + '/comments/' + encodeURIComponent(this._objectType) + '/' + encodeURIComponent(this.id) + '/'; } }); OCA.Comments.CommentSummaryModel = CommentSummaryModel; })(OC, OCA);