<script id="tpl-media-select-view" type="text/template">
    <div class="media-select-view row">
        <div class="col-sm-12 add-more">
            <a href="">add more</a>
        </div>
        <div class="col-sm-12 media-input">
            <div class="form-group">
                <div class="input-group">
                    <input placeholder="add media" type="text" class="simple-tag-input form-control" autocomplete="off" size="50"/>
                    <span class="input-group-btn">
                        <button class="add btn btn-default"><span class="glyphicon glyphicon-plus"></span></button>
                    </span>
                    <span class="input-group-btn">
                        <button class="explore btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
                    </span>
                </div>
            </div>
        </div>
    </div>
</script>

<script id="tpl-media-select-view" type="text/template">
    <div class="media-select-view row">
        <div class="col-sm-12 add-more">
            <a href="">add more</a>
        </div>
        <div class="col-sm-12 media-input">
            <div class="form-group">
                <div class="input-group">
                    <input placeholder="add media" type="text" class="simple-tag-input form-control" autocomplete="off" size="50"/>
                    <span class="input-group-btn">
                        <button type="button" class="add btn btn-default"><span class="glyphicon glyphicon-plus"></span></button>
                    </span>
                    <span class="input-group-btn">
                        <button type="button" class="explore btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
                    </span>
                </div>
            </div>
        </div>
    </div>
</script>

Make add-media button non-submit to fix query-on-enter bug.
Make add-media button non-submit to fix query-on-enter bug.
