Advertisement
DrupalCustom

jscriptss

Jan 31st, 2012
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function () {
  2.   $("#edit-status-list").change(function() {
  3.   var selectedStatus = $(this).find(":selected").text();
  4.   var charExists = ((window.location.href).indexOf('?') >= 0) ? true : false;
  5.  
  6.  if(charExists){
  7.  var split = (window.location.href).split('?');
  8.  var loc = split[0];
  9.  
  10.  loc = loc+"?status="+selectedStatus;  
  11.  self.location.href= loc;
  12.  
  13.  }
  14.  
  15.  else{
  16.   var locf = window.location.href+"?status="+selectedStatus;   
  17.   self.location.href= locf;
  18.  
  19.   }
  20.  
  21.   });
  22. });
  23.  
  24. $(document).ready(function () {
  25.   $("#edit-create-project-btn").submit(function() {
  26.  
  27.   //block the button
  28.  
  29.   });
  30. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement