mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10270] Replaced find by tag names with class names in the js.
What it was before (selecting by tag name) could have caused some problems for style authors. PHPBB3-10270
This commit is contained in:
parent
5b2352613e
commit
3166cbb33d
3 changed files with 8 additions and 8 deletions
|
@ -25,11 +25,11 @@
|
||||||
|
|
||||||
<div id="phpbb_alert" class="phpbb_alert">
|
<div id="phpbb_alert" class="phpbb_alert">
|
||||||
<a href="#"><img src="{T_THEME_PATH}/images/alert_close.png" class="alert_close" /></a>
|
<a href="#"><img src="{T_THEME_PATH}/images/alert_close.png" class="alert_close" /></a>
|
||||||
<h3></h3><p></p>
|
<h3 class="alert_title"></h3><p class="alert_text"></p>
|
||||||
</div>
|
</div>
|
||||||
<div id="phpbb_confirm" class="phpbb_alert">
|
<div id="phpbb_confirm" class="phpbb_alert">
|
||||||
<a href="#"><img src="{T_THEME_PATH}/images/alert_close.png" class="alert_close" /></a>
|
<a href="#"><img src="{T_THEME_PATH}/images/alert_close.png" class="alert_close" /></a>
|
||||||
<p></p>
|
<p class="alert_text"></p>
|
||||||
<input type="button" class="button1" value="{L_YES}" />
|
<input type="button" class="button1" value="{L_YES}" />
|
||||||
<input type="button" class="button2" value="{L_NO}" />
|
<input type="button" class="button2" value="{L_NO}" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -48,8 +48,8 @@ phpbb.loading_alert = function() {
|
||||||
*/
|
*/
|
||||||
phpbb.alert = function(title, msg, fadedark) {
|
phpbb.alert = function(title, msg, fadedark) {
|
||||||
var div = $('#phpbb_alert');
|
var div = $('#phpbb_alert');
|
||||||
div.find('h3').html(title);
|
div.find('.alert_title').html(title);
|
||||||
div.find('p').html(msg);
|
div.find('.alert_text').html(msg);
|
||||||
|
|
||||||
div.bind('click', function(e) {
|
div.bind('click', function(e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
@ -110,7 +110,7 @@ phpbb.alert = function(title, msg, fadedark) {
|
||||||
*/
|
*/
|
||||||
phpbb.confirm = function(msg, callback, fadedark) {
|
phpbb.confirm = function(msg, callback, fadedark) {
|
||||||
var div = $('#phpbb_confirm');
|
var div = $('#phpbb_confirm');
|
||||||
div.find('p').html(msg);
|
div.find('.alert_text').html(msg);
|
||||||
|
|
||||||
div.bind('click', function(e) {
|
div.bind('click', function(e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
|
@ -32,11 +32,11 @@
|
||||||
|
|
||||||
<div id="phpbb_alert" class="phpbb_alert">
|
<div id="phpbb_alert" class="phpbb_alert">
|
||||||
<a href="#"><img src="{T_THEME_PATH}/images/alert_close.png" class="alert_close" /></a>
|
<a href="#"><img src="{T_THEME_PATH}/images/alert_close.png" class="alert_close" /></a>
|
||||||
<h3></h3><p></p>
|
<h3 class="alert_title"></h3><p class="alert_text"></p>
|
||||||
</div>
|
</div>
|
||||||
<div id="phpbb_confirm" class="phpbb_alert">
|
<div id="phpbb_confirm" class="phpbb_alert">
|
||||||
<a href="#"><img src="{T_THEME_PATH}/images/alert_close.png" class="alert_close" /></a>
|
<a href="#"><img src="{T_THEME_PATH}/images/alert_close.png" class="alert_close" /></a>
|
||||||
<p></p>
|
<p class="alert_text"></p>
|
||||||
<input type="button" class="button1" value="{L_YES}" />
|
<input type="button" class="button1" value="{L_YES}" />
|
||||||
<input type="button" class="button2" value="{L_NO}" />
|
<input type="button" class="button2" value="{L_NO}" />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue