Add explanation to top of BOM

This commit is contained in:
Rob H
2014-04-24 15:10:45 +10:00
parent c86586fc16
commit 43106d5db8
2 changed files with 3 additions and 3 deletions

View File

@@ -35,8 +35,7 @@ orderManagementModule.directive "ofnLineItemUpdAttr", [
orderManagementModule.directive "ofnConfirmModelChange", (ofnConfirmHandler,$timeout) ->
restrict: "A"
require: "ngModel"
link: (scope, element, attrs, ngModel) ->
link: (scope, element, attrs) ->
handler = ofnConfirmHandler scope, -> scope.fetchOrders()
scope.$watch attrs.ngModel, (oldValue,newValue) ->
handler() unless oldValue == undefined || newValue == oldValue