Commit ad59838ad45f235d3aca88a7cee0b8f900732dc3

  • avatar
  • Sergey 'Jin' Bostandzhyan <jin @deve…per.digitalstrom.org>
  • Wed Jul 28 16:37:20 CEST 2010
Corrected URL in saveScene ;>
dss-setup-interface/dSS/util/Util.js
(4 / 4)
  
6363
6464dSS.util.saveSceneOnZone = function(zoneId, sceneNumber, groupId) {
6565 Ext.Ajax.request({
66 url: '/json/zone/callScene',
66 url: '/json/zone/saveScene',
6767 disableCaching: true,
6868 method: "GET",
6969 params: { id : zoneId,
7373 try {
7474 var jsonData = Ext.util.JSON.decode(result.responseText);
7575 if (!jsonData.ok) {
76 Ext.MessageBox.alert(_("Could not call scene") + " " +
76 Ext.MessageBox.alert(_("Could not save scene") + " " +
7777 sceneNumber, jsonData.message);
7878 }
7979 } catch (err) {
8080 Ext.MessageBox.alert(_("Error"),
81 _("Could not send callScene command to dSS") + ": " + err);
81 _("Could not send saveScene command to dSS") + ": " + err);
8282 }
8383 },
8484 failure: function(result, request) {
8585 Ext.MessageBox.alert(_("Error"),
86 _("Could not send callScene command to dSS"));
86 _("Could not send saveScene command to dSS"));
8787 }
8888 });
8989}