, ruleidx = 1, itemidx = 1, loading = true, titlePrompt = $('#title-prompt-text'), // Give the product name initial focus title = $('#title').bind('focus keydown',function () { titlePrompt.hide(); }).blur(function () { if (title.val() == '') titlePrompt.show(); else titlePrompt.hide(); }), SCOPEPROP_LANG = <?php ShoppScreenDiscountEditor::scopes(); ?> , TARGET_LANG = <?php ShoppScreenDiscountEditor::targets(); ?> , RULES_LANG = <?php ShoppScreenDiscountEditor::rules(); ?> , conditions = <?php ShoppScreenDiscountEditor::conditions(); ?> , logic = <?php