viewoptions.js   viewoptions.js 
define(["jquery", "api/viewoptions", "api/actions", "api/properties", "jque ry-ui"], function($, viewOptionApi, actionApi, propApi) { define(["jquery", "api/remotecontrol", "api/viewoptions", "api/actions", "a pi/properties", "jquery-ui"], function($, rc, viewOptionApi, actionApi, pro pApi) {
"use strict"; "use strict";
var $vo_projectionlist; var $vo_projectionlist;
var $vo_landscapelist; var $vo_landscapelist;
var $vo_skyculturelist; var $vo_skyculturelist;
function fillProjectionList(data) { function fillProjectionList(data) {
var $projectionlist = $("#vo_projectionlist"); var $projectionlist = $("#vo_projectionlist");
$projectionlist.empty(); $projectionlist.empty();
var prev = $projectionlist.prev(); var prev = $projectionlist.prev();
skipping to change at line 95 skipping to change at line 95
$vo_landscapelist = $("#vo_landscapelist"); $vo_landscapelist = $("#vo_landscapelist");
$vo_skyculturelist = $("#vo_skyculturelist"); $vo_skyculturelist = $("#vo_skyculturelist");
$vo_projectionlist = $("#vo_projectionlist"); $vo_projectionlist = $("#vo_projectionlist");
viewOptionApi.loadProjectionList(fillProjectionList); viewOptionApi.loadProjectionList(fillProjectionList);
viewOptionApi.loadLandscapeList(fillLandscapeList); viewOptionApi.loadLandscapeList(fillLandscapeList);
viewOptionApi.loadSkycultureList(fillSkycultureList); viewOptionApi.loadSkycultureList(fillSkycultureList);
viewOptionApi.registerCatalogFlags($("#vo_dsocatalog")); viewOptionApi.registerCatalogFlags($("#vo_dsocatalog"));
viewOptionApi.registerTypeFlags($("#vo_dsotype > div")); //n eeds a stricter selector to prevent capturing the header checkbox viewOptionApi.registerTypeFlags($("#vo_dsotype > div")); //n eeds a stricter selector to prevent capturing the header checkbox
}
$(actionApi).on("stelActionChanged:actionShow_LightPollutionFromData $(actionApi).on("stelActionChanged:actionShow_LightPollution
base", function(evt, data) { FromDatabase", function(evt, data) {
$("#atmosphere_bortlescaleindex").spinner("option", "disable $("#atmosphere_bortlescaleindex").spinner("option",
d", data.isChecked); "disabled", data.isChecked);
}); });
$(propApi).on("stelPropertyChanged:LandscapeMgr.flagLandscapeUseMini $(propApi).on("stelPropertyChanged:LandscapeMgr.flagLandscap
malBrightness", function(evt, data) { eUseMinimalBrightness", function(evt, data) {
$("#landscape_defaultMinimalBrightness").spinner("option", " $("#landscape_defaultMinimalBrightness").spinner("op
disabled", !data.value); tion", "disabled", !data.value);
$("#landscape_flagLandscapeSetsMinimalBrightness").prop("dis $("#landscape_flagLandscapeSetsMinimalBrightness").p
abled", !data.value); rop("disabled", !data.value);
}); });
}
$(propApi).on("stelPropertyChanged:LandscapeMgr.currentLandscapeID", function(evt,data){ $(propApi).on("stelPropertyChanged:LandscapeMgr.currentLandscapeID", function(evt,data){
//reload iframe //reload iframe
$("#vo_landscapeinfo").attr("src", function(i, val) { $("#vo_landscapeinfo").attr("src", function(i, val) {
return val; return val;
}); });
}); });
$(propApi).on("stelPropertyChanged:StelSkyCultureMgr.currentSkyCultu reID", function(evt,data){ $(propApi).on("stelPropertyChanged:StelSkyCultureMgr.currentSkyCultu reID", function(evt,data){
//this forces a reload of the iframe //this forces a reload of the iframe
skipping to change at line 131 skipping to change at line 132
//this forces a reload of the iframe //this forces a reload of the iframe
$("#vo_projectioninfo").attr('src', function(i, val) { $("#vo_projectioninfo").attr('src', function(i, val) {
return val; return val;
}); });
}); });
$(actionApi).on("stelActionChanged:actionSet_Nebula_TypeFilterUsage" , function(evt, data) { $(actionApi).on("stelActionChanged:actionSet_Nebula_TypeFilterUsage" , function(evt, data) {
$("#vo_dsotype > div input[type='checkbox']").prop("disabled ", !data.isChecked); $("#vo_dsotype > div input[type='checkbox']").prop("disabled ", !data.isChecked);
}); });
$(initControls); $(rc).on("uiReady",initControls);
}); });
 End of changes. 5 change blocks. 
15 lines changed or deleted 16 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/