Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
e58f699b
Commit
e58f699b
authored
Nov 27, 2018
by
Saliya Randunu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S12520281 # Client - Incoming Issues (raised by Client) #Mouse wheel does not work on category list
parent
29e8496f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
5 deletions
+36
-5
job_detail.jsp
cmsWebApp/webroot/extensions/adminportal/job_detail.jsp
+36
-5
No files found.
cmsWebApp/webroot/extensions/adminportal/job_detail.jsp
View file @
e58f699b
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
var lastclickedOccid = 0 , lastclickedOcc = "" ;
var lastclickedOccid = 0 , lastclickedOcc = "" ;
var occPopup;
var occPopup;
var occlistObj = {"level0" : null , "level1" : null , "level2" : null , "level3" : null };
var occlistObj = {"level0" : null , "level1" : null , "level2" : null , "level3" : null };
var scrolldiv = null ;
$(document).ready(function()
$(document).ready(function()
{
{
setupRecalc ($("form#editJob"), {'recalcOnError':true});
setupRecalc ($("form#editJob"), {'recalcOnError':true});
...
@@ -53,7 +54,7 @@
...
@@ -53,7 +54,7 @@
$(".dyn-div").empty();
$(".dyn-div").empty();
$('.occupation_content_column ul li').removeClass("clicked");
$('.occupation_content_column ul li').removeClass("clicked");
$(".occupation_select_info").css("width","75%");
$(".occupation_select_info").css("width","75%");
if (scrolldiv===null) scrolldiv = '.main-list-div';
if(lastclickedOccid!==0){
if(lastclickedOccid!==0){
var currEle = $(".main-list-div").find("li[data-id='"+ lastclickedOccid +"']");
var currEle = $(".main-list-div").find("li[data-id='"+ lastclickedOccid +"']");
occlistObj[currEle.parent('ul').attr("class")] = lastclickedOccid ;
occlistObj[currEle.parent('ul').attr("class")] = lastclickedOccid ;
...
@@ -79,9 +80,23 @@
...
@@ -79,9 +80,23 @@
occPopup.close();
occPopup.close();
}
}
});
});
$(document).on('mousewheel', function(e){
if(scrolldiv!==null){
var target = $( scrolldiv);
if(e.originalEvent.wheelDelta /120 > 0) {
target.scrollTop(target.scrollTop() + 10);
}
else{
target.scrollTop(target.scrollTop() - 10);
}
}
});
});
});
function checkParents(currEle){
function checkParents(currEle){
newCurrEle = currEle.parent('ul').parent("li");
newCurrEle = currEle.parent('ul').parent("li");
if (newCurrEle.length){
if (newCurrEle.length){
...
@@ -109,10 +124,19 @@
...
@@ -109,10 +124,19 @@
$("." + nextUl.attr('class') + "-div").empty();
$("." + nextUl.attr('class') + "-div").empty();
$("." + nextUl.attr('class') + "-div").nextAll().empty();
$("." + nextUl.attr('class') + "-div").nextAll().empty();
var nextDiv = $("." + nextUl.attr('class') + "-div");
if(nextUl) {
if(nextUl) {
nextUl.appendTo($("." + nextUl.attr('class') + "-div"));
nextUl.appendTo(nextDiv);
}
if(nextDiv.hasScrollBar()){
scrolldiv = "." + nextUl.attr('class') + "-div";
}else{
scrolldiv = '.main-list-div';
}
}
if(thisEle.parent().hasClass("level2")) {
if(thisEle.parent().hasClass("level2")) {
$(".occupation_select_info").hide();
$(".occupation_select_info").hide();
...
@@ -140,6 +164,13 @@
...
@@ -140,6 +164,13 @@
ajaxProcessDeleteJQ("<%= request.getContextPath() %>/genericDelete_AJAX.jsp", "#middle-workflows" , { varKey: deleteVarKey });
ajaxProcessDeleteJQ("<%= request.getContextPath() %>/genericDelete_AJAX.jsp", "#middle-workflows" , { varKey: deleteVarKey });
return false;
return false;
}
}
(function($) {
$.fn.hasScrollBar = function() {
return this.get(0).scrollHeight > this.height();
}
})(jQuery);
</script>
</script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&key=AIzaSyCaBh-MsMb8BBYJD_NcFzoCmygQbt5-QSw"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&key=AIzaSyCaBh-MsMb8BBYJD_NcFzoCmygQbt5-QSw"></script>
<oneit:script>
<oneit:script>
...
@@ -474,7 +505,7 @@
...
@@ -474,7 +505,7 @@
<div class="occupation_content" id="occupation_content" style="display: none;">
<div class="occupation_content" id="occupation_content" style="display: none;">
<div class="occupation_content_row">
<div class="occupation_content_row">
<div class="main-list-div occupation_content_column">
<div
id="scrollme"
class="main-list-div occupation_content_column">
<ul class="level0">
<ul class="level0">
<%
<%
Occupation[] firstLevelOccupations = Occupation.SearchByAll()
Occupation[] firstLevelOccupations = Occupation.SearchByAll()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment