How to use vent - 9 common examples

To help you get started, we’ve selected a few vent examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Radarr / Radarr / src / UI / Movies / Editor / Organize / OrganizeFilesView.js View on Github external
_organize : function() {
        var movieIds = _.pluck(this.movies, 'id');

        CommandController.Execute('renameMovie', {
            name      : 'renameMovie',
            movieIds : movieIds
        });

        this.trigger('organizingFiles');
        vent.trigger(vent.Commands.CloseModalCommand);
    }
});
github Radarr / Radarr / src / UI / Settings / DownloadClient / Edit / DownloadClientEditView.js View on Github external
_onAfterSave : function() {
        this.targetCollection.add(this.model, { merge : true });
        vent.trigger(vent.Commands.CloseModalCommand);
    },
github Radarr / Radarr / src / UI / Settings / CustomFormats / Edit / CustomFormatEditView.js View on Github external
_onAfterSave : function() {
        this.targetCollection.add(this.model, { merge : true });
        vent.trigger(vent.Commands.CloseModalCommand);
    },
github Radarr / Radarr / src / UI / Activity / History / Details / HistoryDetailsLayout.js View on Github external
_markAsFailed : function() {
        var url = window.NzbDrone.ApiRoot + '/history/failed';
        var data = {
            id : this.model.get('id')
        };

        $.ajax({
            url  : url,
            type : 'POST',
            data : data
        });

        vent.trigger(vent.Commands.CloseModalCommand);
    }
});
github Radarr / Radarr / src / UI / Settings / Profile / Edit / EditProfileLayout.js View on Github external
_onAfterSave : function() {
        this.profileCollection.add(this.model, { merge : true });
        vent.trigger(vent.Commands.CloseModalCommand);
    },
github Radarr / Radarr / src / UI / Movies / Details / SeasonLayout.js View on Github external
_openEpisodeFileEditor : function() {
        var view = new EpisodeFileEditorLayout({
            model             : this.model,
            series            : this.series,
            episodeCollection : this.episodeCollection
        });

        vent.trigger(vent.Commands.OpenModalCommand, view);
    }
});
github Radarr / Radarr / src / UI / Series / Details / SeriesDetailsLayout.js View on Github external
_openEpisodeFileEditor : function() {
        var view = new EpisodeFileEditorLayout({
            series            : this.model,
            episodeCollection : this.episodeCollection
        });

        vent.trigger(vent.Commands.OpenModalCommand, view);
    },
github Radarr / Radarr / src / UI / Mixins / FileBrowser.js View on Github external
button.on('click', function() {
            vent.trigger(vent.Commands.ShowFileBrowser, inputOptions);
        });
github Radarr / Radarr / src / UI / Shared / SignalRBroadcaster.js View on Github external
this.signalRconnection.received(function(message) {
            vent.trigger('server:' + message.name, message.body);
        });

vent

JavaScript event dispatcher

Unknown
Latest version published 9 years ago

Package Health Score

36 / 100
Full package analysis

Popular vent functions