You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/dist/comments-comments.js

3 lines
2.4 KiB

/*! For license information please see comments-comments.js.LICENSE.txt */
!function(){var n={4921:function(){OCA.Comments.ActivityTabViewPlugin={prepareModelForDisplay:function(n,e,t){if("comments"===n.get("app")&&"comments"===n.get("type")&&"ActivityTabView"===t&&(e.addClass("comment"),n.get("message")&&this._isLong(n.get("message")))){e.addClass("collapsed");var o=$("<div>").addClass("message-overlay");e.find(".activitymessage").after(o),e.on("click",this._onClickCollapsedComment)}},_onClickCollapsedComment:function(n){var e=$(n.target);e.is(".comment")||(e=e.closest(".comment")),e.removeClass("collapsed")},_isLong:function(n){return n.length>250||(n.match(/\n/g)||[]).length>1}},OC.Plugins.register("OCA.Activity.RenderingPlugins",OCA.Comments.ActivityTabViewPlugin)},75387:function(){OCA.Comments||(OCA.Comments={})},4543:function(){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},n(e)}var e;e=Handlebars.template,(OCA.Comments.Templates=OCA.Comments.Templates||{}).filesplugin=e({compiler:[8,">= 4.3.0"],main:function(e,t,o,l,s){var i,r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,c="function",m=e.escapeExpression,u=e.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<a class="action action-comment permanent" title="'+m(n(i=null!=(i=u(o,"countMessage")||(null!=t?u(t,"countMessage"):t))?i:a)===c?i.call(r,{name:"countMessage",hash:{},data:s,loc:{start:{line:1,column:50},end:{line:1,column:66}}}):i)+'" href="#">\n\t<img class="svg" src="'+m(n(i=null!=(i=u(o,"iconUrl")||(null!=t?u(t,"iconUrl"):t))?i:a)===c?i.call(r,{name:"iconUrl",hash:{},data:s,loc:{start:{line:2,column:23},end:{line:2,column:34}}}):i)+'"/>\n</a>\n'},useData:!0})}},e={};function t(o){var l=e[o];if(void 0!==l)return l.exports;var s=e[o]={exports:{}};return n[o](s,s.exports,t),s.exports}t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,{a:e}),e},t.d=function(n,e){for(var o in e)t.o(e,o)&&!t.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:e[o]})},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},function(){"use strict";t(75387),t(4543),t(4921),window.OCA.Comments=OCA.Comments}()}();
//# sourceMappingURL=comments-comments.js.map?v=725846369a5ea9774592