Commit 59bbdc8c authored by Carsten  Rose's avatar Carsten Rose
Browse files

Link.php: Fixed problem das custom title and text not displayed in popup window.

 QucikFormQuery.php: Update default text.
parent 2d91edb1
......@@ -938,7 +938,7 @@ class QuickFormQuery {
</div>
<div class="modal-body" style="text-align: center;">
<span class="glyphicon glyphicon-cog glyphicon-spin text-large-with-margin text-primary"></span>
<p id="qfqModalText101">PDF Document is being generated. Please wait.</p>
<p id="qfqModalText101">Document is being generated. Please wait.</p>
</div>
<div class="modal-footer">
<p>In progress..</p>
......
......@@ -1117,9 +1117,10 @@ EOF;
$text = DOWNLOAD_POPUP_REPLACE_TEXT;
$title = DOWNLOAD_POPUP_REPLACE_TITLE;
$attributes = 'class="btn btn-default" data-toggle="modal" data-target="#qfqModal101" data-backdrop="static" data-keyboard="false" ';
$attributes = 'class="btn btn-default" data-toggle="modal" data-target="#qfqModal101" data-title="' . $title .
'" data-text="' . $text . '" data-backdrop="static" data-keyboard="false" ';
$onClick = <<<EOF
onclick="$('#qfqModalTitle101').text($(this).data('$title')); $('#qfqModalText101').text($(this).data('$text'));"
onclick="$('#qfqModalTitle101').text($(this).data('title')); $('#qfqModalText101').text($(this).data('text'));"
EOF;
$vars[NAME_GLYPH] = GLYPH_ICON_FILE;
......@@ -1127,7 +1128,6 @@ EOF;
$vars[NAME_URL] = API_DIR . '/' . API_DOWNLOAD_PHP;
$vars[NAME_LINK_CLASS_DEFAULT] = NO_CLASS;
$vars[NAME_EXTRA_CONTENT_WRAP] = '<button type="button" ' . $attributes . $onClick . '>';
// $vars[NAME_DOWNLOAD] = ($value == '') ? DOWNLOAD_OUTPUT_PDF : $value; // Download ExportFileName
return $vars;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment