Skip to content

Commit

Permalink
open file browse dialog when thumbnail is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Sep 1, 2016
1 parent 50843ae commit ee83a2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/core/uis/single_file.js
Expand Up @@ -137,7 +137,7 @@ define([
{{#if html}}\
{{{html}}}\
{{else}} \
<a href="{{link}}" class="title" target="single_file"><img src="{{thumbUrl}}"></a> \
<a href="#" class="title"><img src="{{thumbUrl}}"></a> \
{{/if}} \
</div> \
<div class="ui-img-details single_file"> \
Expand Down Expand Up @@ -183,7 +183,7 @@ define([
var model = this.fileModel;
model.setFile(file);
},
'click button[data-action="computer"],.ui-thumbnail-dropzone': function(e) {
'click button[data-action="computer"], .ui-thumbnail-dropzone, .single-image-thumbnail img': function(e) {
this.$el.find('#fileAddInput').click();
},
'click button[data-action="url"]': function(e) {
Expand Down

0 comments on commit ee83a2a

Please sign in to comment.