equal
deleted
inserted
replaced
94 gSync.cancelEdit() ; |
94 gSync.cancelEdit() ; |
95 } |
95 } |
96 onChangeScopeClick = function() { |
96 onChangeScopeClick = function() { |
97 if (readyForAction()) |
97 if (readyForAction()) |
98 gSync.changeScopeFormClick() ; |
98 gSync.changeScopeFormClick() ; |
|
99 else {// (onChangeScopeClick triggers an animation : checking for readyForAction does not prevent the checkbox change ...) |
|
100 var chckCtrl = CY.get("#"+gEdit['ids']['changeScopeInputId']+" input") ; |
|
101 var chck = chckCtrl.get('checked') ; |
|
102 chckCtrl.set('checked', !chck) ; // set it back |
|
103 } |
99 } |
104 } |
100 changeScopeFormClick = function() { |
105 changeScopeFormClick = function() { |
101 var node = CY.get("#"+gEdit['ids']['currentSelId']) ; |
106 var node = CY.get("#"+gEdit['ids']['currentSelId']) ; |
102 if (CY.get("#"+gEdit['ids']['changeScopeInputId']+" input").get('checked')) |
107 if (CY.get("#"+gEdit['ids']['changeScopeInputId']+" input").get('checked')) |
103 node.removeClass('displaynone') ; |
108 node.removeClass('displaynone') ; |