Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Mar 29, 2017
1 parent a17e4ca commit 1c20562
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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 1c20562

Please sign in to comment.