SHARE
TWEET

SB admin passage fix: NEW syncBook

bhengh Jun 11th, 2013 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 function syncBook(s) {
  2.                         var slc = jQuery(s)[0].value;
  3.                         jQuery('.passage').each(function(i) {
  4.                                 if (this == jQuery(s).parents('.passage')[0]) {
  5.                                         jQuery('.end').each(function(j) {
  6.                                                 if (i == j) {
  7.                                                         jQuery("option[value='" + slc + "']", this).attr('selected', 'selected');
  8.                                                 }
  9.                                         });
  10.                                 }
  11.                         });
  12.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top