WIP
- Coupon Add/Edit/Delete rule AJAX
This commit is contained in:
@@ -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';
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user