Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- $("#edit-status-list").change(function() {
- var selectedStatus = $(this).find(":selected").text();
- var charExists = ((window.location.href).indexOf('?') >= 0) ? true : false;
- if(charExists){
- var split = (window.location.href).split('?');
- var loc = split[0];
- loc = loc+"?status="+selectedStatus;
- self.location.href= loc;
- }
- else{
- var locf = window.location.href+"?status="+selectedStatus;
- self.location.href= locf;
- }
- });
- });
- $(document).ready(function () {
- $("#create-freeway-project").submit(function() {
- $(":submit", this).attr("disabled", "disabled");
- });
- });
- $(".common_link_class").click(function() {
- alert("Hello");
- // Set a click counter.
- var count = ($(this).data("clicks") || 0) + 1;
- $(this).data("clicks", count);
- // When someone clicks once just let them go on.
- if ($(this).data("clicks") >= 1) {
- // We could do some cleverness here but i dont feel like it at the moment...
- }
- // More than one click and we dont do anything.
- if ($(this).data("clicks") >= 2) {
- // You could also leave a rude message here like ... actually i won't say :D
- return false;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement