Skip to content

Commit f9cec9b

Browse files
committed
solve the init() error
1 parent ae9949b commit f9cec9b

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

themes/mapmint/static/js/architecture.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -258,19 +258,15 @@ function doDisplay2() {
258258

259259
function doDisplay3(){
260260
$('.anim2').append('<div id="cog3"></div>');
261-
$(".jqdesc").fadeIn(1000);
261+
$(".jqdesc").fadeIn(1000);
262262
}
263263

264264
function doDisplay4() {
265265
$(".oldesc").show();
266+
}
266267

267-
(function doDisplay5($) {
268-
269-
$("#scroller").fadeIn(1000);
270-
$("#scroller").simplyScroll({orientation:'vertical',customClass:'vert'});
268+
function doDisplay5() {
269+
$("#scroller").fadeIn(1000);
270+
$("#scroller").simplyScroll({orientation:'vertical',customClass:'vert'});
271271

272-
})(jQuery);
273-
274-
275-
276-
}
272+
}(jQuery);

themes/mapmint/static/js/components.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var cycle;
55
var $j = jQuery.noConflict();
66
var $ = $j;
77

8-
$(function($) {
8+
function init() {
99

1010

1111

@@ -103,6 +103,6 @@ $("li.cg a").hover(
103103
}
104104
);
105105

106-
});
106+
};
107107

108108

themes/mapmint/static/js/plans.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var OSMgs;
44
var $j = jQuery.noConflict();
55
var $ = $j;
66

7-
$(function($) {
8-
console.log( "ready!" );
7+
function init() {
8+
99
$(".span4").each(function(){
1010
console.log($(this));
1111
$(this).removeClass("span4").addClass("col-md-4");
@@ -73,4 +73,4 @@ $('.wyg').click(function(){
7373
}, 1500);
7474
});
7575

76-
});
76+
};

0 commit comments

Comments
 (0)