Skip to content

Commit

Permalink
サブフォルダにインストールした際にbcColumnのスマホ用メニューのアイコンが表示されない問題を修正 (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
seto1 authored and ryuring committed Apr 25, 2018
1 parent c1ea1f7 commit 6364c42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Baser/Config/theme/bccolumn/js/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,16 @@ $(function() {
*--------------------------------------------------------------------------*/

$(function(){
var baseUrl = $('#Logo a').attr('href');
if( window.matchMedia('(max-width:768px)').matches ){
var flg = "close";
$("#BtnMenu img").click(function(){
$('#GrobalNavi > ul').slideToggle();
if(flg=="close") {
this.src = "/theme/bccolumn/img/sp/btn_close.png";
this.src = baseUrl + "theme/bccolumn/img/sp/btn_close.png";
flg = "open";
} else {
this.src = "/theme/bccolumn/img/sp/btn_menu.png";
this.src = baseUrl + "theme/bccolumn/img/sp/btn_menu.png";
flg = "close";
}
});
Expand Down

0 comments on commit 6364c42

Please sign in to comment.