Commit ad59838ad45f235d3aca88a7cee0b8f900732dc3
- Diff rendering mode:
- inline
- side by side
dss-setup-interface/dSS/util/Util.js
(4 / 4)
|   | |||
| 63 | 63 | ||
| 64 | 64 | dSS.util.saveSceneOnZone = function(zoneId, sceneNumber, groupId) { | |
| 65 | 65 | Ext.Ajax.request({ | |
| 66 | url: '/json/zone/callScene', | ||
| 66 | url: '/json/zone/saveScene', | ||
| 67 | 67 | disableCaching: true, | |
| 68 | 68 | method: "GET", | |
| 69 | 69 | params: { id : zoneId, | |
| … | … | ||
| 73 | 73 | try { | |
| 74 | 74 | var jsonData = Ext.util.JSON.decode(result.responseText); | |
| 75 | 75 | if (!jsonData.ok) { | |
| 76 | Ext.MessageBox.alert(_("Could not call scene") + " " + | ||
| 76 | Ext.MessageBox.alert(_("Could not save scene") + " " + | ||
| 77 | 77 | sceneNumber, jsonData.message); | |
| 78 | 78 | } | |
| 79 | 79 | } catch (err) { | |
| 80 | 80 | Ext.MessageBox.alert(_("Error"), | |
| 81 | _("Could not send callScene command to dSS") + ": " + err); | ||
| 81 | _("Could not send saveScene command to dSS") + ": " + err); | ||
| 82 | 82 | } | |
| 83 | 83 | }, | |
| 84 | 84 | failure: function(result, request) { | |
| 85 | 85 | Ext.MessageBox.alert(_("Error"), | |
| 86 | _("Could not send callScene command to dSS")); | ||
| 86 | _("Could not send saveScene command to dSS")); | ||
| 87 | 87 | } | |
| 88 | 88 | }); | |
| 89 | 89 | } |

