- Coupon Add/Edit/Delete rule AJAX
This commit is contained in:
gmorel
2013-09-12 09:32:16 +02:00
parent d16f3c28e5
commit 936d0dbe37
2 changed files with 4 additions and 1 deletions

View File

@@ -67,6 +67,10 @@ $(function($){
var valueId = null; var valueId = null;
var idName = null; var idName = null;
if(id) {
couponManager.ruleToUpdate = couponManager.ruleToSave;
}
for (idName in couponManager.ruleToUpdate.operators) { for (idName in couponManager.ruleToUpdate.operators) {
// Setting idName operator select // Setting idName operator select
operatorId = idName + '-operator'; operatorId = idName + '-operator';

View File

@@ -19,7 +19,6 @@
{include file='coupon/form.html' formAction={url path={$formAction}} form=$form noRules=false} {include file='coupon/form.html' formAction={url path={$formAction}} form=$form noRules=false}
{/form} {/form}
</section> <!-- #wrapper --> </section> <!-- #wrapper -->
{/block} {/block}