Commit 78e65424 by Nilu

S12518726 # Client - Incoming Issues (raised by Client) #Bad tab sequence after Job Title

parent 7d809fcf
......@@ -1132,6 +1132,8 @@ span.skill-label span{
width: 100%;
padding-left: 34px;
}
.main-pack-type li a:focus{outline: thin dotted;outline: 5px auto -webkit-focus-ring-color;outline-offset: -2px; }
.main-pack-type li{
float: left;
width: 22.38%;
......
......@@ -105,50 +105,45 @@
}
});
$(document).on('mousewheel', function(e){
if(scrolldiv!==null){
var target = $( scrolldiv);
$(document).on('mousewheel', function(e){
if(scrolldiv!==null){
var target = $( scrolldiv);
if(e.originalEvent.wheelDelta /120 > 0) {
target.scrollTop(target.scrollTop() + 10);
target.scrollTop(target.scrollTop() + 10);
}
else{
target.scrollTop(target.scrollTop() - 10);
}
}
});
$(".create-job").find('input,select,textarea').each(function (i) { $(this).attr('tabindex', i + 1); });
}
});
$(".create-job").find('a,input,select,textarea').each(function (i) { $(this).attr('tabindex', i + 1); });
var currFocusSelect2
var currFocusSelect2
$(document).on('focus', '.select2.select2-container', function (e) {
// only open on original attempt - close focus event should not fire open
if (e.originalEvent && $(this).find(".select2-selection--single").length > 0) {
currFocusSelect2 = $(this).siblings('select').on("select2-blur", function(e) { log ("blur");});;
currFocusSelect2.select2('open');
}
});
$(document).on('focus', '.select2.select2-container', function (e) {
// only open on original attempt - close focus event should not fire open
if (e.originalEvent && $(this).find(".select2-selection--single").length > 0) {
currFocusSelect2 = $(this).siblings('select').on("select2-blur", function(e) { log ("blur");});;
currFocusSelect2.select2('open');
}
});
$(document).on('keyup', '.select2.select2-container', function (e) {
$(document).on('keyup', '.select2.select2-container', function (e) {
if(!$(this).hasClass('select2-container--open')){
nexttab = parseInt($(this).siblings('select').attr('tabindex')) + 1 ;
$('[tabindex=' + nexttab + ']').focus();
}
});
if(!$(this).hasClass('select2-container--open')){
nexttab = parseInt($(this).siblings('select').attr('tabindex')) + 1 ;
$('[tabindex=' + nexttab + ']').focus();
}
});
$('input[type="text"][id$="Industry"]').blur(function(){
if($(this).next().val() === ""){
$(this).val('');
}
});
$('input[type="text"][id$="Industry"]').blur(function(){
if($(this).next().val() === ""){
$(this).val('');
}
});
$('input[type="text"][id$="Industry"]').attr('placeholder','Please select an Industry');
$('input[type="text"][id$="Industry"]').attr('placeholder','Please select an Industry');
});
......@@ -189,7 +184,7 @@
if(nextDiv.hasScrollBar()){
scrolldiv = "." + nextUl.attr('class') + "-div";
}else{
scrolldiv = '.main-list-div';
scrolldiv = '.main-list-div';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment