Skip to content

Commit

Permalink
Select only first elements inside the wrapper. Bump version to 0.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
DamirSvrtan committed May 25, 2015
1 parent dc06314 commit b7b81b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/assets/javascripts/phrasing_plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
var generatePhrasingImageWidget = function($wrapper){
return new PhrasingImageWidget({
fileInput : $wrapper.find('.phrasing-image-file-input')[0],
$fileInputLabel : $wrapper.find('.phrasing-image-edit-label'),
$discardChangeLabel : $wrapper.find('.phrasing-image-discard-change-label'),
$fileInputLabel : $wrapper.find('.phrasing-image-edit-label').first(),
$discardChangeLabel : $wrapper.find('.phrasing-image-discard-change-label').first(),
$wrapper : $wrapper,
$image : $wrapper.find('img.phrasable-image'),
$form : $wrapper.find('.phrasing-image-edit-form'),
$submitButton : $wrapper.find('.phrasing-image-submit-button')
$image : $wrapper.find('img.phrasable-image').first(),
$form : $wrapper.find('.phrasing-image-edit-form').first(),
$submitButton : $wrapper.find('.phrasing-image-submit-button').first()
});
};

Expand Down
2 changes: 1 addition & 1 deletion lib/phrasing_plus/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module PhrasingPlus
VERSION = "0.0.11"
VERSION = "0.0.12"
end

0 comments on commit b7b81b2

Please sign in to comment.