Skip to content

Commit

Permalink
change delimiter for statsdash
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed Aug 12, 2011
1 parent f32e2df commit c658de8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<fieldset>
<div><label>Title: <input class="title" value="<%= title %>"></label></div>
<div><label>Range: <input class="range" value="<%= from %>"></label></div>
<div><label>Data: <textarea class="target"><%= target.join(', ') %></textarea></label></div>
<div><label>Data: <textarea class="target"><%= target.join(' | ') %></textarea></label></div>
<div><button>done</button></div>
</fieldset>
</form>
Expand Down Expand Up @@ -183,7 +183,10 @@
for (opt in globalOpts) {
computedSrc += '&' + opt + '=' + globalOpts[opt];
}
$(this.el).find('img').attr('src', decodeURIComponent(computedSrc));
$(this.el).find('img').css({
width: w+'px',
height: h+'px'
}).attr('src', decodeURIComponent(computedSrc));
},
edit: function() {
$(this.el).addClass("edit");
Expand All @@ -195,7 +198,7 @@
this.model.save({
title: $el.find('.title').val(),
from: $el.find('.range').val(),
target: $el.find('.target').val().split(/\s*,\s*/)
target: $el.find('.target').val().split(/\s*\|\s*/)
});
$(this.el).removeClass("edit");
},
Expand Down

0 comments on commit c658de8

Please sign in to comment.