Debug Crazy IE error
by siegesan
JavaScript
/* File Created: May 20, 2012 */
/// <reference path="~/k/js/kendo.all-vsdoc.js" />
$("document").ready(function () {
window.baseURL = location.protocol + "//" + location.host + location.pathname;
// REMEMBER THIS IS A VIEWMODEL FOR AN INDIVIDUAL OBJECTIVE!!!
window.viewModel = kendo.observable({
objective: {
Guidance_ID: 0,
Text: "",
Desc: "",
SubmitStatus: "untouched",
SubmitStatus_ID: 0,
AllowDNA: false,
TotalBudget: 0,
ReasonDNA: "",
MarkedDNA: false,
NumEmptyTargets: 0
},
FormattedTotalBudget: function () {
//return "$23,000";
return kendo.format("{0:c0}", this.get("objective.TotalBudget"));
},
Guidance_ID: 0,
statusImg: function () {
var baseURL = imgBaseURL;
var statusID = this.get("objective.SubmitStatus_ID");
return getStatusImageURL(statusID);
},
SubmitStatusAlt: function () {
var currentStat = this.get("objective.SubmitStatus_ID");
switch (currentStat) {
case 0:
return "Objective has not been worked on";
case 1:
return "Objective is Working";
case 2:
return "Objective is Ready to Approve";
case 3:
return "Objective is Approved";
default:
return "Objective=>";
}
},
StatusInstructions: function () {
var currentStat = this.get("objective.SubmitStatus_ID");
switch (currentStat) {
case 0:
return "Objective is Untouched:";
case 1:
return "Objective is Working:";
case 2:
return "Objective is Ready to:";
case 3:
...