Commit aef7b2de by Manzar Hussain

update js

parent 1efb8b5f
......@@ -201,6 +201,7 @@
var elemt = $('.history_scroll_pane').find('.historyscrollerPane').eq(0)
elemt.addClass('product_history').siblings('.historyscrollerPane').removeClass('product_history');
$('.indicator li:first-child').addClass('opcty_container').siblings().removeClass('opcty_container');
stripLength(0);
stripOther(0)
......@@ -208,12 +209,13 @@
scrollGen('scroll_pane');
$('.indicator li').click(function(){
$(this).addClass('opcty_container').siblings().removeClass('opcty_container');
var getIndex = $(this).index();
$('.history_scroll_pane').find('.historyscrollerPane').eq(getIndex).addClass('product_history').siblings('.historyscrollerPane').removeClass('product_history');
scrollGen('product_history');
stripLength(getIndex);
});
scrollGen('scroll_pane');
function scrollGen(e){
$('.'+e).jScrollPane({
showArrows: false,
......@@ -239,11 +241,6 @@
});
}
$('.indicator li:first-child').addClass('opcty_container').siblings().removeClass('opcty_container');
$(this).addClass('opcty_container').siblings().removeClass('opcty_container');
......
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