File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed
Modern Development/Service Portal Widgets/Sticky Notes Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change 11api . controller = function ( $scope ) {
22/* widget controller */
33var c = this ;
4- c . add = function ( ) {
5- c . data . action = "addMessage" ;
6- c . server . update ( ) . then ( function ( ) {
7- c . data . action = undefined ;
8- c . data . newColor = "" ;
9- c . data . message = "" ;
10- } )
11- }
12- c . remove = function ( i ) {
13- c . data . i = i ;
14- c . data . action = "removeMessage" ;
15- c . server . update ( ) . then ( function ( ) {
16- c . data . action = undefined ;
17- } )
18-
19- }
4+ c . add = function ( ) {
5+ c . data . action = "add" ;
6+ c . server . update ( ) . then ( function ( ) {
7+ c . data . action = undefined ;
8+ c . data . newColor = "" ;
9+ c . data . text = "" ;
10+ } )
11+ }
12+ c . remove = function ( i ) {
13+ c . data . i = i ;
14+ c . data . action = "remove" ;
15+ c . server . update ( ) . then ( function ( ) {
16+ c . data . action = undefined ;
17+ } )
18+ }
2019}
You can’t perform that action at this time.
0 commit comments