bkrztuk wrote:Did you get any errors in browser console? Do you have any additional backend plugins like Advanced Module Manager?
Thanks for checking this. please advise on following error.
I am not using Advance Module Manager and could see following error in console:-
TypeError: item.getElements(...)[1] is undefined
...('.gk_tab_edit_stretch').get('value');var access=item.getElement('.gk_tab_edit_c...
item.getElement('.gk_tab_edit_type').addEvent('change',function(){if(item.getElement('.gk_tab_edit_type').value=='article'){item.getElement('.gk_tab_edit_art').setStyle('display','block');item.getElement('.gk_tab_edit_artK2').setStyle('display','none');item.getElement('.gk_tab_edit_name').getParent().setStyle('display','block');item.getElement('.gk_tab_edit_content').getParent().setStyle('display','none');item.getElement('.gk_tab_edit_url').getParent().setStyle('display','none');}else if(item.getElement('.gk_tab_edit_type').value=='text'){item.getElement('.gk_tab_edit_artK2').setStyle('display','none');item.getElement('.gk_tab_edit_art').setStyle('display','none');item.getElement('.gk_tab_edit_name').getParent().setStyle('display','block');item.getElement('.gk_tab_edit_content').getParent().setStyle('display','block');item.getElement('.gk_tab_edit_url').getParent().setStyle('display','block');}else{item.getElement('.gk_tab_edit_artK2').setStyle('display','block');item.getElement('.gk_tab_edit_name').getParent().setStyle('display','block');item.getElement('.gk_tab_edit_art').setStyle('display','none');item.getElement('.gk_tab_edit_content').getParent().setStyle('display','none');item.getElement('.gk_tab_edit_url').getParent().setStyle('display','none');}});item.getElements('.gk_tab_item_remove').addEvent('click',function(e){if(e)e.stop();var items=item.getParent().getElements('.gk_tab_item');var item_id=items.indexOf(item);tabs.splice(item_id,1);item.destroy();document.id('jform_params_image_show_data').innerHTML=JSON.encode(tabs);});item.getElements('.gk_tab_edit_submit a')[1].addEvent('click',function(e){if(e)e.stop();var scroller=item.getElement('.gk_tab_editor_scroll');scroller.setStyle('height',scroller.getSize().y+"px");new Fx.Tween(scroller,{duration:250,property:'height'}).start(0);});item.getElements('.gk_tab_edit_submit a')[0].addEvent('click',function(e){if(e)e.stop();var name=item.getElement('.gk_tab_edit_name').get('value');var type=item.getElement('.gk_tab_edit_type').get('value');var image=item.getElement('.gk_tab_edit_image').get('value');var stretch=item.getElement('.gk_tab_edit_stretch').get('value');var access=item.getElement('.gk_tab_edit_content_access').get('value');var published=item.getElement('.gk_tab_edit_published').get('value');var content=item.getElement('.gk_tab_edit_content').get('value');var url=item.getElement('.gk_tab_edit_url').get('value');var art_id=item.getElement('.jform_request_edit_art').get('value');var art_title=item.getElement('.modal-art-name').get('value');var artK2_id=item.getElement('.jform_request_edit_artK2').get('value');var artK2_title=item.getElement('.modal-artK2-name').get('value');var items=item.getParent().getElements('.gk_tab_item');var item_id=items.indexOf(item);tabs[item_id]={"name":name,"type":type,"image":image,"stretch":stretch,"access":access,"published":published,"content":htmlspecialchars(content),"url":url,"art_id":art_id,"art_title":art_title,"artK2_id":artK2_id,"artK2_title":artK2_title};item.getElement('.gk_tab_item_name').innerHTML=name;item.getElement('.gk_tab_item_type').innerHTML=(type=='text')?module_text:article_text;item.getElement('.gk_tab_item_state').setProperty('class',(published==1)?'gk_tab_item_state published':'gk_tab_item_state unpublished');item.getElement('.gk_tab_item_state').setProperty('title',(published==1)?published_text:unpublished_text);item.getElement('.gk_tab_item_access').innerHTML=(access=='public')?public_text:registered_text;item.getElement('.modal-img').setProperty('href','../'+ image);item.getElements('.gk_tab_edit_submit a')[1].fireEvent('click');document.id('jform_params_image_show_data').innerHTML=JSON.encode(tabs);});item.getElement('.gk_tab_item_order_up').addEvent('click',function(e){if(e)e.stop();var wrap=item.getParent();var items=item.getParent().getElements('.gk_tab_item');var item_id=items.indexOf(item);if(item_id>0){var tmp=tabs[item_id- 1];tabs[item_id- 1]=tabs[item_id];tabs[item_id]=tmp;item.inject(item.getPrevious(),'before');if(items.length>0){wrap.getElements('.gk_tab_item_order_down').setStyle('opacity',1);wrap.getElements('.gk_tab_item_order_up').setStyle('opacity',1);wrap.getElement('.gk_tab_item_order_up').setStyle('opacity',0.3);wrap.getElements('.gk_tab_item_order_down')[items.length- 1].setStyle('opacity',0.3);}