Back to PhocacartRenderAdminjs class

Method renderAjaxDoRequestWizard

public static
renderAjaxDoRequestWizard
()

Method renderAjaxDoRequestWizard - Source code

/* Ask for the changes, if something changes - e.g. category is created
 * return this to inform and update status in wizard modal window
 */
public static function renderAjaxDoRequestWizard()
{
    $s = PhocacartRenderStyle::getStyles();
    $js = array();
    $js[] = ' function phDoRequestWizard(url) {';
    $js[] = '   var s = [];';
    $js[] = '   s["phTrue"] = \'<div class="ph-true"><span class="glyphicon glyphicon-ok icon-ok"></span> ' . Text::_('COM_PHOCACART_CREATED') . '</div>\';';
    $js[] = '   s["phTrueAdd"] = \'<div class="ph-true"><span class="glyphicon glyphicon-ok icon-ok"></span> ' . Text::_('COM_PHOCACART_ADDED') . '</div>\';';
    $js[] = '   s["phTrueEdit"] = \'<div class="ph-true"><span class="glyphicon glyphicon-ok icon-ok"></span> ' . Text::_('COM_PHOCACART_EDITED') . '</div>\';';
    $js[] = '   s["phTrueAll"] = 1';
    $js[] = '   s["phFalse"] = \'<div class="ph-false"><span class="glyphicon glyphicon-remove icon-remove"></span> ' . Text::_('COM_PHOCACART_NOT_CREATED_YET') . '</div>\';';
    $js[] = '   s["phFalseAdd"] = \'<div class="ph-false"><span class="glyphicon glyphicon-remove icon-remove"></span> ' . Text::_('COM_PHOCACART_NOT_ADDED_YET') . '</div>\';';
    $js[] = '   s["phFalseEdit"] = \'<div class="ph-false"><span class="glyphicon glyphicon-remove icon-remove"></span> ' . Text::_('COM_PHOCACART_NOT_EDITED_YET') . '</div>\';';
    $js[] = '  phDoRequestWizardParent(url, s);';
    $js[] = '}';
    Factory::getDocument()->addScriptDeclaration(implode("\n", $js));
}