SB admin passage fix: OLD addPassage

bhengh Jun 11th, 2013 35 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 function addPassage() {
  2.                         var p = jQuery('#passage').clone();
  3.                         p.attr('id', 'passage' + gpid);
  4.                         jQuery('tr:first td:first', p).prepend('[<a href="javascript:removePassage(' + gpid++ + ')">x</a>] ');
  5.                         jQuery("input", p).attr('value', '');
  6.                         jQuery('.passage:last').after(p);
  7.                 }
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