Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 13 02:55
    pushkalb123 commented #214
  • Nov 12 19:01
    nicolasgoudard commented #212
  • Nov 12 17:42
    pushkalb123 commented #212
  • Nov 12 17:40
    pushkalb123 commented #214
  • Nov 11 17:22
    mouse0270 commented #214
  • Nov 11 07:00
    pushkalb123 edited #214
  • Nov 11 07:00
    pushkalb123 opened #214
  • Nov 02 05:09
    mehmetakify commented #180
  • Nov 01 19:36
    mehmetakify commented #136
  • Sep 24 19:08
    FranCoFeliz commented #178
  • Sep 24 19:07
    FranCoFeliz opened #213
  • Aug 21 10:36
    brian-codes commented #180
  • Aug 21 10:35
    brian-codes commented #180
  • Aug 08 19:55
    nicolasgoudard opened #212
  • Jul 06 14:41
    agustindorado95 opened #211
  • Jun 29 17:28
    topolanekmartin commented #166
  • Jun 12 23:09
    NtTestAlert commented #205
  • Jun 12 23:09
    NtTestAlert commented #205
  • Mar 26 20:12
    jrondorf commented #196
  • Jan 11 09:44
    datayeah commented #201
ZweHtat Naing
@ZweHtatNaing
hello I'm very new to bootstrap-notify , I want to use it when user signup email is successfully sent
How do I use bootstrap-notify within razor syntax?
nocaut
@dikiypac
bootstrap-notify very simple. that it does not work
Robert McIntosh
@mouse0270
@dikiypac may I know your issue so I can attemp to resolve it?
@ZweHtatNaing I am not sure what razor syntax is due to not using it. Can you can provide we with an error syntax you are recieving I might be able to better assist you.
nocaut
@dikiypac
@mouse0270 i not have problem. all is good
Balint Farago
@blfarago_twitter
Hi! Your plugin is wonderful. Quick question though: Is it possible to fire an event when the notification is closed explicitly by the user by clicking the x button? I tried it by setting onClosed: alert('clicked'), but it was fired only when the page loaded (I show the notification on page load). Thanks
ZweHtat Naing
@ZweHtatNaing
@mouse0270 , thanks its work fine now. Its really amazing...
Robert McIntosh
@mouse0270
@blfarago_twitter you can try $('body').on('click', '[data-notify="url"]', function() { ... });
This is actaully going to be a feature in version 4, with an option called 'onCloseClick'
Balint Farago
@blfarago_twitter
Thanks for the quick answer. For now, I could do it by giving the alert an id and attaching a regular onclick event to it. Looking forward to version 4!
Robert McIntosh
@mouse0270
@blfarago_twitter you should be able to use the code provided above. Yeah, I was hoping to release version for early this month. However I missed up my wrist and have come to the realization that it is surprisingly hard to program with one hand.
Jake Smith
@jakehockey10
Hi there! I'm upgrading an existing project that was using the old $.growl syntax, and now that I've moved it to the newer $.notify function name, and in either case, I get an error telling me that "$.notify is not defined." I can put a breakpoint in developer tools in the bootstrap-notify code that is indeed loaded. However, I never hit the line that defines the $.notify function. Does anyone have any pointers they could give me to sort this out?
Robert McIntosh
@mouse0270
@jakehockey10 can you try moving the notify plugin to the bottom of your list to verify that another plugin isn't causing a conflict. I know of one that has a conflict and that is datatables.
Jake Smith
@jakehockey10
@mouse0270 do you mean to the bottom of my bower.json? It is currently at the bottom of my dependencies :worried:
Robert McIntosh
@mouse0270
@jakehockey10 on the page where you load the plugin.
without seeing the project it is hard to debug, but it sounds like there is a conflict.
Jake Smith
@jakehockey10
gotcha. While I'm doing that, one thing I noticed was that despite the breakpoint that was on the definition for $.notify never hit, the breakpoints in the top half of that same file DID hit. So the code is definitely being run, but the bottom function starting out like this: (function ($) { ... does not get invoked. Let me try what you suggested real quick
Robert McIntosh
@mouse0270
Let me know if that works.
Jake Smith
@jakehockey10
I will let you know as soon as I can. Running into Gulp issues :worried:
Jake Smith
@jakehockey10
I'm sorry to be such a noob, but everyone has to start somewhere, yes? Can you explain to me how I go about changing the order of this plugin in the list? Are you talking about the reference to it in the HTML? script tag?
If so, the only scripts loaded after this one is my app javascript source
aka angular controllers/etc.
There isn't much here, as I am trying to migrate a poorly organized boiler template to a hottowel app structure and trying to get dependencies and main modules in order first. Would you mind taking a look at a git repo?
Jake Smith
@jakehockey10
@mouse0270 here is the repo git@github.com:jakehockey10/material-admin-hottowel.git
Robert McIntosh
@mouse0270
Yes, I am saying move it down lower in the html.
Jake Smith
@jakehockey10
I'm injecting my bower components into the HTML, I'll put that below my app code. I'm only assuming that order is a best practice, but I couldn't tell you why
Robert McIntosh
@mouse0270
it appears that it is currently near the bottom, but not at the bottom. I would try moving it down one item at a time, if it never works then the issue isn't a conflict but something else, if it does work after moving it, that means the above plugin is causing the conflict.
Jake Smith
@jakehockey10
@mouse0270 thank a deity for browser-sync. I can just manually move it for now and save the file. No change, still not defined :(
Robert McIntosh
@mouse0270
@jakehockey10 how updated is the repository you linked to? The one I am looking at appears to still being using growl instead of notify
Jake Smith
@jakehockey10
@mouse0270 I have the remarkable-bootstrap-notify in my bower.json, is that not right?
Robert McIntosh
@mouse0270
I see in the package you are getting the files, but in the index.html you are still linking to the growl plugin.
This is the file you are loading in the document, but that is still the growl version of the plugin.<script src="vendors/bootstrap-growl/bootstrap-growl.min.js"></script>
Jake Smith
@jakehockey10
Sure enough, that was also in my bower_components and bower.json. I removed it and pushed the changes, but still see the issue
Robert McIntosh
@mouse0270
@jakehockey10 did you update the script tag so that it points to bootstrap-notify.min.js instead of bootstrap-growl.min.js
Jake Smith
@jakehockey10
I'm trying to figure out how to do that now...this gulp-wiredup, gulp-inject stuff is a very dark-grey box still
Robert McIntosh
@mouse0270
I am old school, I still like to write out all of my stuff instead of using gulp and bower. So I can't help there, I just hide. haha.
Jake Smith
@jakehockey10
I'm about to do the same ;-) It looks like I'll have to minify it myself for now (https://github.com/taptapship/wiredep/issues/52) What makes you think pointing to the minified file will make a difference? I only ask to learn, not to challenge :)
would like to be able to serve dev with unminified files if I can manage it though
Robert McIntosh
@mouse0270
I think the problem is you are pointing to bootstrap-growl instead of bootstrap-notify
in the index.html file that exists on github it shows that you are still using the growl plugin and not the notify plugin.
Jake Smith
@jakehockey10
oh, if you are pointing to a file in the "material-admin" folder, all of that is a template I purchased and not being served at all.
Jake Smith
@jakehockey10
Where does bootstrap-notify.js get it's definition of $ from?
Or is $ just globally jQuery?
Robert McIntosh
@mouse0270
it is globablly jQuery
@jakehockey10 it looks like it isn't entering the plugin part...
Robert McIntosh
@mouse0270
@jakehockey10 so I think I got it to work...
@jakehockey10 so it appears the last line in the notify plugin has to look like this }(jQuery)));
and then the plugin starts to work.