mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Update icon structure in bootbox buttons (#11925)
This commit is contained in:
4
vendor/assets/javascripts/bootbox.js
vendored
4
vendor/assets/javascripts/bootbox.js
vendored
@@ -340,7 +340,7 @@ var bootbox = window.bootbox || (function(document, $) {
|
||||
}
|
||||
|
||||
if (handlers[i]['icon']) {
|
||||
icon = "<i class='"+handlers[i]['icon']+"'></i> ";
|
||||
icon = handlers[i]['icon'];
|
||||
}
|
||||
|
||||
if (handlers[i]['href']) {
|
||||
@@ -350,7 +350,7 @@ var bootbox = window.bootbox || (function(document, $) {
|
||||
href = _defaultHref;
|
||||
}
|
||||
|
||||
buttons = buttons + "<a data-handler='"+i+"' class='"+_class+"' href='" + href + "'>"+icon+""+label+"</a>";
|
||||
buttons = buttons + "<a data-handler='"+i+"' class='"+_class+"' href='" + href + "'>"+icon+"<span class='d-button-label'>"+label+"</span></a>";
|
||||
|
||||
callbacks[i] = callback;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user