Skip to content

Commit

Permalink
Merge pull request #344 from pebble/bugfix/kv-table-remove
Browse files Browse the repository at this point in the history
Fix KV-table row delete regression
  • Loading branch information
Spacerat authored Aug 31, 2016
2 parents e7e7a6e + a46a993 commit 86fb8be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ide/static/ide/js/KVtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ CloudPebble.KVTable = function(table_elm, options) {
.attr('placeholder', key ? null : opts.value_placeholder)),
$('<td>').append(
$('<button>')
.prop('disabled', !key))
.prop('disabled', !key)
.text('-')
.addClass("btn kv-remove")
.attr('type', 'button')
.attr('type', 'button'))
]);
self.trigger('rowRendered', row);
return row;
Expand Down
1 change: 1 addition & 0 deletions ide/static/ide/js/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ CloudPebble.Dependencies = (function() {
if (!val) return;
cache.lookup_module(val).then(function(data) {
on_submit(val, data.version ? version_prefix + data.version : null);
return null;
}).catch(function() {
on_submit(val, null);
});
Expand Down

0 comments on commit 86fb8be

Please sign in to comment.