Skip to content
Snippets Groups Projects
Commit c55e1f2b authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Fix issues with the JS counter modifications

parent 309a46d0
Branches
Tags
No related merge requests found
......@@ -141,7 +141,7 @@ var ajaxAddCounter = function (btn, nrtype) {
var countername = prompt (ajax_ordernumber.ORDERNUMBER_JS_NEWCOUNTER);
if (countername != null) {
var loading = jQuery("img.ordernumber-loading").first().clone().insertAfter(jQuery(btn).find("img.ordernumber-counter-addbtn")).show();
var ajxargs = {
var ajaxargs = {
type: "POST",
dataType: "json",
url: ajax_ordernumber.ajax_url,
......
......@@ -425,7 +425,7 @@ JFactory::getApplication()->enqueueMessage("<pre>Counter Settings: ".print_r($ct
public function counter_modification_create_row ($type, $counter, $value) {
$html=array();
$html[] = " <tr class='counter_row counter_row_$type'>";
$html[] = " <td class='counter_format'>" . htmlentities((string)(($counter=="")?($this->__ ('PLG_ORDERNUMBER_COUNTERLIST_GLOBAL')):$counter)) . "</td>";
$html[] = " <td class='counter_format'>" . (($counter=="")?($this->__ ('PLG_ORDERNUMBER_COUNTERLIST_GLOBAL')):htmlentities($counter)) . "</td>";
$html[] = " <td class='counter_value'>" . htmlentities((string)$value) . "</td>";
$html[] = " <td class='counter_buttons'>";
$html[] = " <div class='ordernumber-ajax-loading'>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment