kax_14 Posted February 10, 2015 Share Posted February 10, 2015 Back office working fine but visually fully messed up! 1.6.0.11 Link to comment Share on other sites More sharing options...
vekia Posted February 10, 2015 Share Posted February 10, 2015 ctrl+shift+j in chrome turn on back office what errors you see in your console output? Link to comment Share on other sites More sharing options...
kax_14 Posted February 10, 2015 Author Share Posted February 10, 2015 On 2/10/2015 at 1:50 PM, vekia said: ctrl+shift+j in chrome turn on back office what errors you see in your console output? These are the errors it is showing so far. Link to comment Share on other sites More sharing options...
kax Posted February 10, 2015 Share Posted February 10, 2015 After uninstalling and re-installing a fresh version of chrome I found these errors Link to comment Share on other sites More sharing options...
kax Posted February 10, 2015 Share Posted February 10, 2015 On 2/10/2015 at 1:50 PM, vekia said: ctrl+shift+j in chrome turn on back office what errors you see in your console output? psadmin/themes/default/js/help.js (it's highlighting line number 3) $(function(){var storage=$.localStorage;initHelp=function(){$('#main').addClass('helpOpen');if($('#help-container').length===0){$('head').append('<link href="//help.prestashop.com/css/help.css" rel="stylesheet">');$('#main').after('<div id="help-container"></div>');} pushContent(help_class_name);$('#help-container').on('click','.popup',function(e){e.preventDefault();storage.set('helpOpen',false);$('.toolbarBox a.btn-help').trigger('click');var helpWindow=window.open("index.php?controller="+ help_class_name+"?token="+ token+"&ajax=1&action=OpenHelp","helpWindow","width=450, height=650, scrollbars=yes");});};function iconCloseHelp(){$('.toolbarBox a.btn-help i').removeClass('process-icon-loading').addClass('process-icon-close');} $('.toolbarBox a.btn-help').on('click',function(e){e.preventDefault();if(!$('#main').hasClass('helpOpen')&&document.body.clientWidth>1200){storage.set('helpOpen',true);$('.toolbarBox a.btn-help i').removeClass('process-icon-help').addClass('process-icon-loading');initHelp();}else if(!$('#main').hasClass('helpOpen')&&document.body.clientWidth<1200){var helpWindow=window.open("index.php?controller="+ help_class_name+"?token="+ token+"&ajax=1&action=OpenHelp","helpWindow","width=450, height=650, scrollbars=yes");}else{$('#main').removeClass('helpOpen');$('#help-container').html('');$('.toolbarBox a.btn-help i').removeClass('process-icon-close').addClass('process-icon-help');storage.set('helpOpen',false);[spam-filter]);if(storage.get('helpOpen')===true){$('a.btn-help').trigger('click');} var language=iso_user;var home;switch(language){case'en':home='19726802';break;case'fr':home='20840479';break;default:language='en';home='19726802';} var arr_feedback={};arr_feedback.page='page';arr_feedback.helpful='helpful';var toc=[];var lang=[['en','19726802'],['fr','20840479']];function getHelp(pageController){var request=encodeURIComponent("getHelp="+ pageController+"&version=1.6&language="+ iso_user);var d=new $.Deferred();$.ajax({url:"//help.prestashop.com/api/?request="+ request,jsonp:"callback",dataType:"jsonp",success:function(data){if(isCleanHtml(data)) {$('#help-container').html(data);d.resolve();[spam-filter]});return d.promise();} function pushContent(target){$('#help-container').removeClass('openHelpNav');$('#help-container').html('');//@todo: track event getHelp(target).then(iconCloseHelp).then(initToc).then(initNavigation).then(initSearch).then(initFeedback);} function initNavigation(){var d=new $.Deferred();var request=encodeURIComponent("api/content/"+ home+"/child?expand=page");$.ajax({url:"//help.prestashop.com/api/?request="+ request,jsonp:"callback",dataType:"jsonp",success:function(data){for(var i=0;i<data.page.results.length;i++){if(isCleanHtml(data.page.results[i].id+ data.page.results[i].title)) $("#help-container #main-nav").append('<a href="//help.prestashop.com/'+ data.page.results[i].id+'?version=1.6" data-target="'+ data.page.results[i].id+'">'+ data.page.results[i].title+'</a>');} $("#help-container #main-nav a").on('click',function(e){e.preventDefault();pushContent($(this).data('target'));});$('#help-container .open-menu').on('click',function(e){e.preventDefault();$('#help-container').addClass('openHelpNav');});$('#help-container .close-menu').on('click',function(e){e.preventDefault();$('#help-container').removeClass('openHelpNav');});d.resolve();[spam-filter]);return d.promise();} function initToc(){var getLinksByLang=function(item){var d=new $.Deferred();var request=encodeURIComponent("api/content/"+ item[1]+"/child/page?expand=children.page&limit=100");$.ajax({url:"//help.prestashop.com/api/?request="+ request,jsonp:"callback",dataType:"jsonp",success:function(data){toc[item[0]]={'title':'Home '+ item[0],'lang':item[0],'id':item[1],'children':[]};data.results.map(function(page,j){var children=[];page.children.page.results.map(function(child,i){children[i]={'title':child.title,'link':child._links.webui,'id':child.id,'lang':item[0]};});toc[item[0]].children[j]={'title':page.title,'link':page._links.webui,'id':page.id,'children':children,'lang':item[0]};});d.resolve();},});return d.promise();};return $.when.apply(null,lang.map(getLinksByLang)).then(function(){var mapping={};$.each(toc[language].children,function(i,section){mapping[section.link]=[section.id,section.title,section.lang];if(typeof section.children!=='undefined'){$.each(section.children,function(i,section){mapping[section.link]=[section.id,section.title,section.lang];});[spam-filter]);$("#help-container a[href^='/display/']").on('click',function(e){e.preventDefault();var href=$(this).attr('href');var target=mapping[href][0];pushContent(target);});$("#help-container a[href^='/pages/viewpage.action?pageId=']").on('click',function(e){e.preventDefault();var pageId=$(this).attr('href').match(/\d+$/);if(pageId){pushContent(pageId[0]);[spam-filter]);$('#help-container a.home').attr('href','//help.prestashop.com/'+toc[language].id+'?version=1.6').on('click',function(e){e.preventDefault();pushContent(toc[language].id);});$("#help-container a[href^='http://']").attr("href",function(){$(this).attr('target','_blank').append(' <i class="fa fa-external-link"></i>');});$('#help-container .toc-indentation a').addClass('anchor');});} function initSearch(){function strongify(str){return str.replace(/[spam-filter]@hl[spam-filter]@/g,'<strong>').replace(/[spam-filter]@endhl[spam-filter]@/g,'</strong>');} $("#help-container #search-box").on("submit",function(e){e.preventDefault();$("#help-container #search-results").html('');var searchUrl=encodeURIComponent("searchv3/1.0/search?where=PS16&type=page&queryString=");var searchTerm=encodeURIComponent($('input[name="search"]').val());$.ajax({url:"//help.prestashop.com/api/?request="+ searchUrl+ searchTerm,jsonp:"callback",dataType:"jsonp",success:function(data){if(data.results.length===0){$("#search-results").addClass('hide');} for(var i=0;i<data.results.length;i++){if(isCleanHtml(data.results[i].id+ data.results[i].title+ data.results[i].bodyTextHighlights)){$("#search-results").removeClass('hide').append('<div class="result-item"><i class="fa fa-file-o"></i> <a href="//help.prestashop.com/'+ data.results[i].id+'?version=1.6" data-target="'+ data.results[i].id+'">'+ strongify(data.results[i].title)+'</a><p>'+ strongify(data.results[i].bodyTextHighlights)+'</p></div>');[spam-filter] $("#search-results a").on('click',function(e){e.preventDefault();pushContent($(this).data('target'));});[spam-filter]);});$('#help-container').on('click','.search',function(e){e.preventDefault();$('#help-container #search-box').removeClass('hide');$('#help-container .header-navigation').addClass('hide');$('#search-box input[name=search]').focus();});$('#help-container').on('click','.close-search',function(){$('#help-container #search-box').addClass('hide');$('#help-container .header-navigation').removeClass('hide');});} function initFeedback(){var arr_feedback={controller:help_class_name,language:iso_user,helpful:null,reason:null,comment:null};$('#help-container .helpful-labels li').on('click',function(){var percentageMap={0:'Not at all',25:'Not very',50:'Somewhat',75:'Very',100:'Extremely'};var percentage=parseInt($(this).data('percentage'));arr_feedback.helpful=percentageMap[percentage];$('#help-container .slider-cursor').removeClass('hide');$('#help-container .helpful-labels li').removeClass('active');$('#help-container .slider-cursor').css('left',percentage+'%');$('#help-container .helpful-labels li').addClass('disabled').off();$(this).removeClass('disabled').addClass('active');if(percentage<=25){$('#help-container .feedback-reason').show();}else if(percentage>25){submitFeedback(arr_feedback);[spam-filter]);$('#help-container .feedback-reason .radio label').on('click',function(){var reasonMap={1:'Not related',2:'Too complicated',3:'Too much',4:'Incorrect',5:'Unclear',6:'Incomplete'};arr_feedback.reason=reasonMap[$('input[name=lowrating-reason]:checked').val()];});$('#help-container .feedback-submit').on('click',function(e){e.preventDefault();arr_feedback.comment=$('textarea[name=feedback-detail]').val();submitFeedback(arr_feedback);});} function submitFeedback(arr_feedback){var feedback='?';var keys=Object.keys(arr_feedback);for(var i=0;i<keys.length;i++){if(i>0){feedback+='&';} feedback+=keys[i]+'='+ arr_feedback[keys[i]];} $.ajax({url:"//help.prestashop.com/api/feedback/"+ feedback,dataType:'jsonp',jsonp:"callback",success:function(){$('#help-container #helpful-feedback').hide();$('#help-container .thanks').removeClass('hide');[spam-filter]);[spam-filter]); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now