Closed (cannot reproduce)
Project:
Bootstrap
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2012 at 23:22 UTC
Updated:
14 Nov 2012 at 01:53 UTC
How to enable «Alert messages» in the Twitter's Bootstrap theme?
Comments
Comment #1
NecroHill commentedI have noticed a typo in the twitter_bootstrap.info :
scripts[] = bootstrap/js/bootstrap-alerts.jsinstead of
scripts[] = bootstrap/js/bootstrap-alert.jsbut fixing this does not help :( the theme is under heavy development and pretty raw and I look forward to seing it stable
Comment #2
Docc commentedGood catch. Fixed in http://drupalcode.org/project/twitter_bootstrap.git/commit/09d644e
Also added the dismiss function to drupal messages.
Comment #3
Stan.Ezersky commentedI have in code:
<script type="text/javascript" src="http://drupal7.loc/sites/all/themes/twitter_bootstrap/bootstrap/js/bootstrap-alert.js?lz6a53"></script>It's valid
and
Original code from http://twitter.github.com/bootstrap/javascript.html#alerts
I have tried paste «fade in» attribute like this
but «Close link» doesn't work.
Comment #4
Docc commentedDo the drupal messages close?
Any js errors?
Comment #5
NecroHill commentedmessages do close but there are some js errors:
No elements were found with the selector: "#"@http://www.engine.co.ww/sites/all/themes/twitter_bootstrap/bootstrap/js/...
and
trigger(close) called incorrectly(bootstrap-alert.js line 48)
Comment #6
NecroHill commentedComment #7
Stan.Ezersky commentedIt works now, thanks!
Comment #8
NecroHill commentedweird issue: close [x] link works on inner pages but does not on front page...
Comment #9
Docc commentedThen you probaply have a JS conflict. Check for any JS errors or missing JS files.
Comment #10
frankbaele commentedComment #11
andregriffin commented