Skip to content

Commit 907a67d

Browse files
committed
fixed fadeIn, fadeOut in m4q
1 parent d7b617e commit 907a67d

File tree

13 files changed

+35
-22
lines changed

13 files changed

+35
-22
lines changed

build/icons.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/metro.all.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/metro.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/metro.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

icons/metro.svg

Lines changed: 2 additions & 1 deletion
Loading

icons/metro.ttf

120 Bytes
Binary file not shown.

icons/metro.woff

120 Bytes
Binary file not shown.

icons/selection.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

source/components/toast/toast.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
toast = $("<div>").addClass("toast").html(message).appendTo($("body"));
3737
width = toast.outerWidth();
38-
toast.hide();
38+
// toast.hide();
3939

4040
timeout = timeout || o.timeout;
4141
callback = callback || o.callback;
@@ -59,15 +59,15 @@
5959
.addClass(o.clsToast)
6060
.addClass(cls)
6161
.fadeIn(METRO_ANIMATION_DURATION, function(){
62+
console.log("ku")
6263
setTimeout(function(){
6364
Toast.remove(toast, callback);
6465
}, timeout);
6566
});
6667
},
6768

6869
remove: function(toast, cb){
69-
if (!toast) return ;
70-
70+
if (!toast.length) return ;
7171
toast.fadeOut(METRO_ANIMATION_DURATION, function(){
7272
toast.remove();
7373
Utils.exec(cb, null, toast[0]);

source/components/toast/toast.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
color: @white;
1515
border-radius: @borderRadius;
1616
z-index: @zindex-top;
17+
display: block;
1718

1819
&.show-top {
1920
bottom: auto;

0 commit comments

Comments
 (0)