mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-23 05:28:53 +00:00
Moving line-item-upd-attr to indexUtils module, renaming to obj-for-update
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
angular.module("ofn.admin").directive "ofnLineItemUpdAttr", (switchClass, pendingChanges) ->
|
||||
angular.module("admin.indexUtils").directive "objForUpdate", (switchClass, pendingChanges) ->
|
||||
scope:
|
||||
object: "&ofnLineItemUpdAttr"
|
||||
type: "@ofnLineItemUpdAttr"
|
||||
attr: "@attrName"
|
||||
object: "&objForUpdate"
|
||||
type: "@objForUpdate"
|
||||
attr: "@attrForUpdate"
|
||||
link: (scope, element, attrs) ->
|
||||
scope.savedValue = scope.object()[scope.attr]
|
||||
|
||||
Reference in New Issue
Block a user