Commit aef7b2de by Manzar Hussain

update js

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