Advertisement
DrupalCustom

scriptjs

Feb 1st, 2012
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.   $("#edit-folks-list").change(function() {
  3.     var targetLangIndex = $(this).find(":selected").text();
  4.     var chunks = targetLangIndex.split("_");
  5.     var idChunk = chunks[1];
  6.    
  7.     $('#edit-targetLang-list').empty();
  8.    
  9.     $.getJSON('/drupalTheme/translate/webDelegate.php?name='+idChunk, function(data) {
  10.         $.each(data, function(key, value) {            
  11.             $('#edit-targetLang-list').append($('<option>', { key : value }).text(value));
  12.         });
  13.     });
  14.   });
  15. });
  16.  
  17.  
  18.  
  19. $(document).ready(function () {
  20.  
  21.   $("#formModifications-translate-bulk").submit(function() {
  22.     $(":submit", this).attr("disabled", "disabled");
  23.    
  24.   });
  25.  
  26. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement