diff --git a/hourglass/.meteor/packages b/hourglass/.meteor/packages index d0281cb..b378b53 100644 --- a/hourglass/.meteor/packages +++ b/hourglass/.meteor/packages @@ -39,3 +39,5 @@ harrison:papa-parse pfafman:filesaver flemay:less-autoprefixer natestrauser:select2 +juliancwirko:s-alert +juliancwirko:s-alert-stackslide diff --git a/hourglass/.meteor/versions b/hourglass/.meteor/versions index 68c61f4..0767d64 100644 --- a/hourglass/.meteor/versions +++ b/hourglass/.meteor/versions @@ -59,6 +59,8 @@ iron:middleware-stack@1.1.0 iron:router@1.0.13 iron:url@1.0.11 jquery@1.11.9 +juliancwirko:s-alert@3.2.0 +juliancwirko:s-alert-stackslide@3.1.3 lai:collection-extensions@0.2.1_1 launch-screen@1.0.12 less@2.7.5 diff --git a/hourglass/client/profile/profile.js b/hourglass/client/profile/profile.js index 99b2ee7..9885085 100644 --- a/hourglass/client/profile/profile.js +++ b/hourglass/client/profile/profile.js @@ -212,7 +212,8 @@ Template.profile.events({ // MAIN BUTTONS 'click #mainpage' () { if (!Meteor.userId() || _.contains([null, undefined, ""], Meteor.user().profile.school)) { - alert("Please fill in your profile!"); + sAlert.closeAll(); + sAlert.error('Please fill in your profile!', {effect: 'stackslide', position: 'top'}); } else { window.location = '/'; }