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{ ...@@ -1132,6 +1132,8 @@ span.skill-label span{
width: 100%; width: 100%;
padding-left: 34px; 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{ .main-pack-type li{
float: left; float: left;
width: 22.38%; width: 22.38%;
......
...@@ -105,50 +105,45 @@ ...@@ -105,50 +105,45 @@
} }
}); });
$(document).on('mousewheel', function(e){ $(document).on('mousewheel', function(e){
if(scrolldiv!==null){
if(scrolldiv!==null){ var target = $( scrolldiv);
var target = $( scrolldiv);
if(e.originalEvent.wheelDelta /120 > 0) { if(e.originalEvent.wheelDelta /120 > 0) {
target.scrollTop(target.scrollTop() + 10); target.scrollTop(target.scrollTop() + 10);
} }
else{ else{
target.scrollTop(target.scrollTop() - 10); 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) { $(document).on('focus', '.select2.select2-container', function (e) {
// only open on original attempt - close focus event should not fire open // only open on original attempt - close focus event should not fire open
if (e.originalEvent && $(this).find(".select2-selection--single").length > 0) { if (e.originalEvent && $(this).find(".select2-selection--single").length > 0) {
currFocusSelect2 = $(this).siblings('select').on("select2-blur", function(e) { log ("blur");});; currFocusSelect2 = $(this).siblings('select').on("select2-blur", function(e) { log ("blur");});;
currFocusSelect2.select2('open'); 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')){ if(!$(this).hasClass('select2-container--open')){
nexttab = parseInt($(this).siblings('select').attr('tabindex')) + 1 ; nexttab = parseInt($(this).siblings('select').attr('tabindex')) + 1 ;
$('[tabindex=' + nexttab + ']').focus(); $('[tabindex=' + nexttab + ']').focus();
} }
}); });
$('input[type="text"][id$="Industry"]').blur(function(){ $('input[type="text"][id$="Industry"]').blur(function(){
if($(this).next().val() === ""){ if($(this).next().val() === ""){
$(this).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 @@ ...@@ -189,7 +184,7 @@
if(nextDiv.hasScrollBar()){ if(nextDiv.hasScrollBar()){
scrolldiv = "." + nextUl.attr('class') + "-div"; scrolldiv = "." + nextUl.attr('class') + "-div";
}else{ }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