Sha256: ea5f332c15ff5b40f123f6b57e3576e1d2539a350e92498ba36beaca9a846f80

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

(function(conjur) {
    'use strict';

    conjur.views.mixins.Search = {
        handleSubmit: function(e) {
            var search = this.refs.input.getDOMNode().value;

            if (search && search.length != 0) {
                conjur.app.router.navigate('/ui/search/' + encodeURIComponent(search), {trigger: true});
            }

            return false;
        }
    };
})(conjur);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
conjur-asset-ui-1.3.2 public/js/views/mixins/search.js
conjur-asset-ui-1.3.0 public/js/views/mixins/search.js