js to handle notfirst / notlast logic
This commit is contained in:
parent
5372afe74b
commit
b992b87bcb
|
@ -36,6 +36,17 @@ $(function() {
|
||||||
var that = this;
|
var that = this;
|
||||||
saveUNR(that, true);
|
saveUNR(that, true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.fromStopSelect').change(function() {
|
||||||
|
var firstOpt = $(this).children().first();
|
||||||
|
firstOpt.attr("selected") ? $(this).removeClass("notfirstStop") : $(this).addClass("notfirstStop");
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.toStopSelect').change(function() {
|
||||||
|
var lastOpt = $(this).children().last();
|
||||||
|
lastOpt.attr("selected") ? $(this).removeClass("notlastStop") : $(this).addClass("notlastStop");
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function saveUNR(elem, markChecked) {
|
function saveUNR(elem, markChecked) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user