dongshan7708 2013-05-18 12:53
浏览 74
已采纳

Jquery ToastMessage - 仅显示特定Toast类型的close?

Not sure if this is the correct place to ask.. but here goes.

I use this jquery plug in :

http://akquinet.github.io/jquery-toastmessage-plugin/

It works well.. but I would only like the close gif to appear for sticky messages, not messages that fade away.

Does anyone know how to do that ?

Many Thanks :)

  • 写回答

1条回答 默认 最新

  • du0531 2013-05-18 12:59
    关注

    Sorry looks like I posted to soon :(

    Changing this :

    i=c("<div></div>").addClass("toast-item-close").prependTo(d).html(g.closeText).click(function(){c().toastmessage("removeToast",d,g)
    });
    

    to this:

    if (g.sticky) {i=c("<div></div>").addClass("toast-item-close").prependTo(d).html(g.closeText).click(function(){c().toastmessage("removeToast",d,g)
    }); }
    

    Seems to have worked..

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 基于ucc28019的pfc电路中芯片一直不工作
  • ¥15 yolov8在3588板子端c++推理报错
  • ¥50 unitywebrequest分段下载导致报错,如何解决?
  • ¥15 错误使用 gretna_GUI_PreprocessInterface>RunBtn_Callback
  • ¥15 WPF如何用Chart绘画出Y轴的左边数据
  • ¥15 pycharm无法查看内置代码
  • ¥15 跑hls xfopencv的例程standalone_hls_axi_example出的错误,csim没问题,c synthesis出的错误
  • ¥15 sqlserver update语句逐行生效
  • ¥20 Windows10系统命令行调用
  • ¥15 php环境如何实现国密SM2相关功能