mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Issue #4923 Tweaked to prevent conflict with <button value=''> . Allow HTML for FontAwesome icons.
This commit is contained in:
@@ -62,9 +62,9 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
if($this.attr('data-modal-submit'))
|
if($this.attr('data-modal-submit'))
|
||||||
{
|
{
|
||||||
var buttonObj = $('#e-modal-iframe').contents().find('#etrigger-submit');
|
var buttonObj = $('#e-modal-iframe').contents().find('#etrigger-submit');
|
||||||
var buttonCaption = buttonObj.text(); // copy submit button caption from iframe form.
|
var buttonCaption = buttonObj.html(); // copy submit button caption from iframe form.
|
||||||
|
|
||||||
if(buttonObj.val())
|
if(!buttonCaption && buttonObj.val())
|
||||||
{
|
{
|
||||||
buttonCaption = buttonObj.val(); // copy when it's an <input type='submit'..
|
buttonCaption = buttonObj.val(); // copy when it's an <input type='submit'..
|
||||||
}
|
}
|
||||||
@@ -74,7 +74,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
var buttonClass = $('#e-modal-iframe').contents().find('#etrigger-submit').attr('data-modal-submit-class'); // co
|
var buttonClass = $('#e-modal-iframe').contents().find('#etrigger-submit').attr('data-modal-submit-class'); // co
|
||||||
if(buttonCaption)
|
if(buttonCaption)
|
||||||
{
|
{
|
||||||
$('#e-modal-submit').text(buttonCaption).fadeIn(); // display the button in the modal footer.
|
$('#e-modal-submit').html(buttonCaption).fadeIn(); // display the button in the modal footer.
|
||||||
}
|
}
|
||||||
|
|
||||||
if(buttonClass)
|
if(buttonClass)
|
||||||
|
Reference in New Issue
Block a user