forked from jayesh92/vms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #680 from anjali-dhanuka/JsStandards
update javscript according to standards
- Loading branch information
Showing
10 changed files
with
38 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** Hides textbox for unlisted organization if a listed organization is selected */ | ||
function hideOrganization(){ | ||
var value = $('#select').val(); | ||
if (value !== '0') { | ||
$("#div_id_unlisted_organization").toggle(); | ||
} else { | ||
$("#div_id_unlisted_organization").toggle(); | ||
} | ||
} | ||
hideOrganization(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
$(function() { | ||
$('#datetimepicker1').datetimepicker({ | ||
pickDate: false, | ||
pickSeconds: false | ||
}); | ||
$('#datetimepicker1').datetimepicker({ | ||
pickDate: false, | ||
pickSeconds: false | ||
}); | ||
}); | ||
|
||
$(function() { | ||
$('#datetimepicker2').datetimepicker({ | ||
pickDate: false, | ||
pickSeconds: false | ||
}); | ||
$(function() { | ||
$('#datetimepicker2').datetimepicker({ | ||
pickDate: false, | ||
pickSeconds: false | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
function update_event_dates(){ | ||
var event_list = document.getElementById("events"); | ||
var selected_event = event_list.options[event_list.selectedIndex]; | ||
var start_date = selected_event.getAttribute("start_date"); | ||
var end_date = selected_event.getAttribute("end_date"); | ||
document.getElementById("start_date_here").innerHTML = start_date; | ||
document.getElementById("end_date_here").innerHTML = end_date; | ||
/** Shows start and end dates of selected event while creating/editing jobs */ | ||
function updateEventDates() { | ||
var eventList = document.getElementById("events"); | ||
var selectedEvent = eventList.options[eventList.selectedIndex]; | ||
var startDate = selectedEvent.getAttribute("start_date"); | ||
var endDate = selectedEvent.getAttribute("end_date"); | ||
document.getElementById("start_date_here").innerHTML = startDate; | ||
document.getElementById("end_date_here").innerHTML = endDate; | ||
} | ||
update_event_dates(); | ||
updateEventDates(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters