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
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.
Sadly this means you would have to download the file locally and not use bower.
Jake Smith
@jakehockey10
@mouse0270 Do you know why that change is necessary?
Robert McIntosh
@mouse0270
@jakehockey10 nope, but it did seem to resolve the matter.
Jake Smith
@jakehockey10
hrmm. That's a bummer. Testing on my side now
Jake Smith
@jakehockey10
Sure enough, $ or jQuery passed in an invoke does the trick. I wish I knew why only I run into this?
It seems like quite a change to have to change the code to be invoked. I guess I need to know a little more about JavaScript to understand why invoking vs. not invoking is required in only some cases
Mudasir Qazi
@mudasirqazi00

Hi, i appreciate your work but i have a confusion, I want to pass variable string in the Message and Title attributes but it always takes hard coded string in quotations. For example,
var msg = ViewBag.Message;
var tpe = ViewBag.MessageType;
<script type="text/javascript">
$.notify({ message: msg }, { type: tpe });
</script>
Instead, it always takes arguments like this:

<script type="text/javascript">
$.notify({ message: 'Hello world'}, { type: 'info' });
</script>
Please help me out, how can i achieve this??

AhmedSelimISH
@AhmedSelimISH
Hello Team, Please I need to Use bootstrap Notify in my share point 2013 solution, Could you please help me with the steps
WEBER Antoine
@TwanoO67
Hello team
I'm looking for a way to know if a notif is already dismissed or not
( the purpose is to: update if the notif is still there, otherwise create a new one )
@mouse0270 is there a way to do that?