Skip to content

Commit

Permalink
Merge pull request #1593 from ravinderk/issues/1592
Browse files Browse the repository at this point in the history
fix #1592
  • Loading branch information
Devin Walker committed Mar 29, 2017
2 parents 5fa81d3 + cabfe1b commit 51d04d5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
7 changes: 4 additions & 3 deletions assets/js/admin/admin-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1360,9 +1360,10 @@ jQuery.noConflict();

// Get max level id.
$('input[type="hidden"].give-levels_id', $this).each(function (index, item) {
var $item = $(item);
if (max_level_id < $item.val()) {
max_level_id = $item.val();
var $item = $(item),
current_level = parseInt( $item.val() );
if (max_level_id < current_level ) {
max_level_id = current_level;
}
});

Expand Down
Loading

0 comments on commit 51d04d5

Please sign in to comment.