Advertisement
DrupalCustom

scriptt

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