This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/views/selected_posts_view.js

22 lines
523 B
JavaScript

/**
This view is used to handle the interface for multi selecting of posts.
@class SelectedPostsView
@extends Discourse.View
@namespace Discourse
@module Discourse
**/
Discourse.SelectedPostsView = Discourse.View.extend({
elementId: 'selected-posts',
templateName: 'selected_posts',
topicBinding: 'controller.content',
classNameBindings: ['customVisibility'],
customVisibility: (function() {
if (!this.get('controller.multiSelect')) return 'hidden';
}).property('controller.multiSelect')
});