Guest User

Untitled

a guest
Jan 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. diff --git a/main.js b/main.js
  2. index 0e2a133..32e8576 100644
  3. --- a/main.js
  4. +++ b/main.js
  5. @@ -246,22 +246,15 @@ function level_select()
  6. {
  7. // Find out which row was selected in table and get info
  8. var table = Config.level_table;
  9. - var selection = null;
  10. var aTrs = table.fnGetNodes();
  11.  
  12. for ( var i=0 ; i<aTrs.length ; i++ )
  13. {
  14. if ( $(aTrs[i]).hasClass('row_selected') )
  15. {
  16. - selection = i;
  17. - break;
  18. + return table.fnGetData(i);
  19. }
  20. }
  21. - if(selection == null)
  22. - return;
  23. -
  24. - var d = table.fnGetData(selection);
  25. - return d;
  26. }
  27.  
  28. function reset(areyousure)
Add Comment
Please, Sign In to add comment