Skip to content

Commit

Permalink
Merge pull request #680 from biblibre/fix_add_parent
Browse files Browse the repository at this point in the history
Issue 679: Nothing happens when clicking the button to add parents in a product detail
  • Loading branch information
andyp-uk authored Jun 27, 2022
2 parents f6fb975 + c9a8d16 commit e20d92a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/forms/resourceUpdateForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ $(function(){

$(".addParent").live('click', function() {

var parentID = $("#newParent .oneParent input[name='parentResourceNewID']'").val();
var parentName = $("#newParent .oneParent input[name='parentResourceName']'").val();
var parentID = $("#newParent .oneParent input[name='parentResourceNewID']").val();
var parentName = $("#newParent .oneParent input[name='parentResourceName']").val();

if (parentName == '') {
return false;
Expand Down

0 comments on commit e20d92a

Please sign in to comment.