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;
- }
- });
- $("#create-freeway-project").submit(function() {
- $(":submit", this).attr("disabled", "disabled");
- });
- $(".common_link_class").click(function() {
- //alert("Hello");
- var count = ($(this).data("clicks") || 0) + 1;
- $(this).data("clicks", count);
- if ($(this).data("clicks") >= 1) {
- }
- if ($(this).data("clicks") >= 2) {
- return false;
- }
- });
- $("#edit-analysis-code-one").change(function () {
- // Get the configs and split them.
- var cfgs = _get_configs("edit-custRef");
- var split_cfgs = cfgs.split('/');
- // Create some new configs and put it back into the configs textfield.
- //var new_cfgs = $(this).val() +"/"+ cfgs[1];
- var new_cfgs = $("#edit-analysis-code-one option:selected").text() +"/"+ cfgs[1];
- $("#edit-custRef").val(new_cfgs);
- });
- $("#edit-analysis-code-two").change(function () {
- // Get the configs and split them.
- var cfgs = _get_configs("edit-custRef");
- var split_cfgs = cfgs.split('/');
- // Create some new configs and put it back into the configs textfield.
- //var new_cfgs = cfgs[0] +"/"+ $(this).val();
- var new_cfgs = cfgs[0] +"/"+ $("#edit-analysis-code-two option:selected").text()
- $("#edit-custRef").val(new_cfgs);
- });
- });
- function _get_configs(id) {
- return $("#"+ id).val();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement