Moving line-item-upd-attr to indexUtils module, renaming to obj-for-update

This commit is contained in:
Rob Harrington
2015-05-08 10:53:59 +10:00
parent 2afd501af3
commit a873278881
2 changed files with 7 additions and 7 deletions

View File

@@ -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]