Update: 3rd Party Libraries

Newtonsoft.Json 5.0.8; RazorGenerator.Mvc 2.1.2; jQuery 2.0.3; jQuery
Validate Unobtrusive 3.0.0; Microsoft.Net.Http 2.1.10; KnockoutJS 2.3.0;
Highcharts 2.0; T4MVC 3.7.4; TinyMCE 4.0.9
This commit is contained in:
Gary Sharp
2013-10-28 17:42:38 +11:00
parent 7096a511c3
commit c13d13c91c
130 changed files with 91487 additions and 42737 deletions
@@ -305,8 +305,11 @@
model.$field.tinymce({
theme: 'simple',
add_unload_trigger: false,
schema: "html5",
statusbar: false,
setup: function (ed) {
ed.onInit.add(function (ed) {
ed.on('init', function () {
$(ed.getWin()).blur(model.updated);
});
}
@@ -405,8 +408,11 @@
model.$field.tinymce({
theme: 'simple',
add_unload_trigger: false,
schema: "html5",
statusbar: false,
setup: function (ed) {
ed.onInit.add(function (ed) {
ed.on('init', function () {
$(ed.getWin()).blur(model.updated);
});
}
@@ -523,7 +529,7 @@
<script type="text/javascript">
$(function () {
var model = {
$DeviceBatch_Comments: $('#DeviceBatch_InsuranceDetails'),
$field: $('#DeviceBatch_InsuranceDetails'),
$ajax_loading: null,
$ajax_ok: null,
updated: function () {
@@ -532,7 +538,7 @@
if (!model.$ajax_ok)
model.$ajax_ok = $('#ajaxInsuranceDetails_ok');
model.$ajax_loading.show();
var data = { InsuranceDetails: model.$DeviceBatch_Comments.tinymce().getContent() };
var data = { InsuranceDetails: model.$field.tinymce().getContent() };
$.ajax({
url: '@(Url.Action(MVC.API.DeviceBatch.UpdateInsuranceDetails(Model.DeviceBatch.Id)))',
dataType: 'json',
@@ -556,11 +562,13 @@
}
};
model.$DeviceBatch_Comments.tinymce({
model.$field.tinymce({
theme: 'simple',
add_unload_trigger: false,
schema: "html5",
statusbar: false,
setup: function (ed) {
//ed.onChange.add(model.updatedThrottle);
ed.onInit.add(function (ed) {
ed.on('init', function () {
$(ed.getWin()).blur(model.updated);
});
}
@@ -588,7 +596,7 @@
<script type="text/javascript">
$(function () {
var model = {
$DeviceBatch_Comments: $('#DeviceBatch_Comments'),
$field: $('#DeviceBatch_Comments'),
$ajax_loading: null,
$ajax_ok: null,
updated: function () {
@@ -597,7 +605,7 @@
if (!model.$ajax_ok)
model.$ajax_ok = $('#ajaxComments_ok');
model.$ajax_loading.show();
var data = { Comments: model.$DeviceBatch_Comments.tinymce().getContent() };
var data = { Comments: model.$field.tinymce().getContent() };
$.ajax({
url: '@(Url.Action(MVC.API.DeviceBatch.UpdateComments(Model.DeviceBatch.Id)))',
dataType: 'json',
@@ -621,11 +629,13 @@
}
};
model.$DeviceBatch_Comments.tinymce({
model.$field.tinymce({
theme: 'simple',
add_unload_trigger: false,
schema: "html5",
statusbar: false,
setup: function (ed) {
//ed.onChange.add(model.updatedThrottle);
ed.onInit.add(function (ed) {
ed.on('init', function () {
$(ed.getWin()).blur(model.updated);
});
}
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -1099,15 +1099,17 @@ WriteLiteral("\',\r\n dataType: \'jso
" }\r\n })" +
"\r\n }\r\n };\r\n\r\n " +
" model.$field.tinymce({\r\n " +
" theme: \'simple\',\r\n setup: function" +
" (ed) {\r\n ed.onInit.add(function (ed) {\r\n" +
" $(ed.getWin()).blur(model.updated);\r" +
"\n });\r\n " +
" }\r\n });\r\n });\r\n " +
" </script>\r\n");
" theme: \'simple\',\r\n add_unload_trig" +
"ger: false,\r\n schema: \"html5\",\r\n " +
" statusbar: false,\r\n se" +
"tup: function (ed) {\r\n ed.on(\'init\', func" +
"tion () {\r\n $(ed.getWin()).blur(model" +
".updated);\r\n });\r\n " +
" }\r\n });\r\n " +
" });\r\n </script>\r\n");
#line 316 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 319 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1123,7 +1125,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">&lt;None Specified&gt;</span>");
#line 320 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 323 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1131,14 +1133,14 @@ WriteLiteral(">&lt;None Specified&gt;</span>");
#line default
#line hidden
#line 322 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 325 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(new HtmlString(Model.DeviceBatch.PurchaseDetails));
#line default
#line hidden
#line 322 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 325 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
}
@@ -1163,13 +1165,13 @@ WriteLiteral(" style=\"width: 100px\"");
WriteLiteral(">Valid Until:\r\n </th>\r\n <td>\r\n");
#line 336 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 339 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line default
#line hidden
#line 336 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 339 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
if (canConfig)
{
@@ -1177,28 +1179,28 @@ WriteLiteral(">Valid Until:\r\n </th>\r\n
#line default
#line hidden
#line 338 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 341 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.EditorFor(model => model.DeviceBatch.WarrantyValidUntil));
#line default
#line hidden
#line 338 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 341 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line default
#line hidden
#line 339 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 342 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
#line default
#line hidden
#line 339 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 342 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
@@ -1213,7 +1215,7 @@ WriteLiteral(@" <script>
'");
#line 346 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 349 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Url.Action(MVC.API.DeviceBatch.UpdateWarrantyValidUntil(Model.DeviceBatch.Id)));
@@ -1229,7 +1231,7 @@ WriteLiteral(@"',
");
#line 353 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 356 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1238,14 +1240,14 @@ WriteLiteral(@"',
#line default
#line hidden
#line 356 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 359 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(CommonHelpers.FriendlyDate(Model.DeviceBatch.WarrantyValidUntil, "Unknown"));
#line default
#line hidden
#line 356 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 359 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
@@ -1260,7 +1262,7 @@ WriteLiteral(" id=\"DeviceBatch_WarrantyDetails_Container\"");
WriteLiteral(">\r\n <div>\r\n Details ");
#line 363 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 366 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(AjaxHelpers.AjaxLoader("ajaxWarrantyDetails"));
@@ -1269,13 +1271,13 @@ WriteLiteral(">\r\n <div>\r\n Details
WriteLiteral("\r\n </div>\r\n");
#line 365 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 368 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line default
#line hidden
#line 365 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 368 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
if (canConfig)
{
@@ -1283,14 +1285,14 @@ WriteLiteral("\r\n </div>\r\n");
#line default
#line hidden
#line 367 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 370 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.EditorFor(model => model.DeviceBatch.WarrantyDetails));
#line default
#line hidden
#line 367 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 370 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
@@ -1319,7 +1321,7 @@ WriteLiteral(@">
url: '");
#line 384 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 387 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Url.Action(MVC.API.DeviceBatch.UpdateWarrantyDetails(Model.DeviceBatch.Id)));
@@ -1343,15 +1345,17 @@ WriteLiteral("\',\r\n dataType: \'jso
" }\r\n })" +
"\r\n }\r\n };\r\n\r\n " +
" model.$field.tinymce({\r\n " +
" theme: \'simple\',\r\n setup: function" +
" (ed) {\r\n ed.onInit.add(function (ed) {\r\n" +
" $(ed.getWin()).blur(model.updated);\r" +
"\n });\r\n " +
" }\r\n });\r\n });\r\n " +
" </script>\r\n");
" theme: \'simple\',\r\n add_unload_trig" +
"ger: false,\r\n schema: \"html5\",\r\n " +
" statusbar: false,\r\n se" +
"tup: function (ed) {\r\n ed.on(\'init\', func" +
"tion () {\r\n $(ed.getWin()).blur(model" +
".updated);\r\n });\r\n " +
" }\r\n });\r\n " +
" });\r\n </script>\r\n");
#line 416 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 422 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1367,7 +1371,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">&lt;None Specified&gt;</span>");
#line 420 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 426 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1375,14 +1379,14 @@ WriteLiteral(">&lt;None Specified&gt;</span>");
#line default
#line hidden
#line 422 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 428 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(new HtmlString(Model.DeviceBatch.WarrantyDetails));
#line default
#line hidden
#line 422 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 428 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
}
@@ -1407,7 +1411,7 @@ WriteLiteral(" style=\"width: 100px\"");
WriteLiteral(">Supplier:\r\n </th>\r\n <td>");
#line 435 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 441 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
if (canConfig)
{
@@ -1415,42 +1419,42 @@ WriteLiteral(">Supplier:\r\n </th>\r\n
#line default
#line hidden
#line 437 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 443 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.EditorFor(model => model.DeviceBatch.InsuranceSupplier));
#line default
#line hidden
#line 437 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 443 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line default
#line hidden
#line 438 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 444 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(AjaxHelpers.AjaxSave());
#line default
#line hidden
#line 438 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 444 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line default
#line hidden
#line 439 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 445 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
#line default
#line hidden
#line 439 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 445 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
@@ -1468,7 +1472,7 @@ WriteLiteral(@">
'");
#line 445 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 451 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Url.Action(MVC.API.DeviceBatch.UpdateInsuranceSupplier(Model.DeviceBatch.Id)));
@@ -1479,7 +1483,7 @@ WriteLiteral("\',\r\n \'InsuranceSupplier
" </script>\r\n");
#line 450 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 456 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1495,7 +1499,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">&lt;None Specified&gt;</span>");
#line 454 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 460 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1503,14 +1507,14 @@ WriteLiteral(">&lt;None Specified&gt;</span>");
#line default
#line hidden
#line 456 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 462 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Model.DeviceBatch.InsuranceSupplier);
#line default
#line hidden
#line 456 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 462 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
;
}
}
@@ -1526,7 +1530,7 @@ WriteLiteral(" class=\"name\"");
WriteLiteral(">Insured Date:\r\n </th>\r\n <td>");
#line 464 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 470 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
if (canConfig)
{
@@ -1534,28 +1538,28 @@ WriteLiteral(">Insured Date:\r\n </th>\r\n
#line default
#line hidden
#line 466 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 472 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.EditorFor(model => model.DeviceBatch.InsuredDate));
#line default
#line hidden
#line 466 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 472 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line default
#line hidden
#line 467 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 473 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
#line default
#line hidden
#line 467 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 473 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
@@ -1570,7 +1574,7 @@ WriteLiteral(@" <script>
'");
#line 474 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 480 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Url.Action(MVC.API.DeviceBatch.UpdateInsuredDate(Model.DeviceBatch.Id)));
@@ -1586,7 +1590,7 @@ WriteLiteral(@"',
");
#line 481 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 487 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1595,14 +1599,14 @@ WriteLiteral(@"',
#line default
#line hidden
#line 484 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 490 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(CommonHelpers.FriendlyDate(Model.DeviceBatch.InsuredDate, "Unknown"));
#line default
#line hidden
#line 484 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 490 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
@@ -1617,7 +1621,7 @@ WriteLiteral(" class=\"name\"");
WriteLiteral(">Insured Until:\r\n </th>\r\n <td>");
#line 491 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 497 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
if (canConfig)
{
@@ -1625,28 +1629,28 @@ WriteLiteral(">Insured Until:\r\n </th>\r\n
#line default
#line hidden
#line 493 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 499 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.EditorFor(model => model.DeviceBatch.InsuredUntil));
#line default
#line hidden
#line 493 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 499 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line default
#line hidden
#line 494 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 500 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
#line default
#line hidden
#line 494 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 500 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
@@ -1661,7 +1665,7 @@ WriteLiteral(@" <script>
'");
#line 501 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 507 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Url.Action(MVC.API.DeviceBatch.UpdateInsuredUntil(Model.DeviceBatch.Id)));
@@ -1677,7 +1681,7 @@ WriteLiteral(@"',
");
#line 508 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 514 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1686,14 +1690,14 @@ WriteLiteral(@"',
#line default
#line hidden
#line 511 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 517 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(CommonHelpers.FriendlyDate(Model.DeviceBatch.InsuredUntil, "Unknown"));
#line default
#line hidden
#line 511 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 517 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
@@ -1708,7 +1712,7 @@ WriteLiteral(" id=\"DeviceBatch_InsuranceDetails_Container\"");
WriteLiteral(">\r\n <div>\r\n Details ");
#line 518 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 524 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(AjaxHelpers.AjaxLoader("ajaxInsuranceDetails"));
@@ -1717,13 +1721,13 @@ WriteLiteral(">\r\n <div>\r\n Details
WriteLiteral("\r\n </div>\r\n");
#line 520 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 526 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line default
#line hidden
#line 520 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 526 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
if (canConfig)
{
@@ -1731,14 +1735,14 @@ WriteLiteral("\r\n </div>\r\n");
#line default
#line hidden
#line 522 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 528 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.EditorFor(model => model.DeviceBatch.InsuranceDetails));
#line default
#line hidden
#line 522 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 528 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
@@ -1751,7 +1755,7 @@ WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(@">
$(function () {
var model = {
$DeviceBatch_Comments: $('#DeviceBatch_InsuranceDetails'),
$field: $('#DeviceBatch_InsuranceDetails'),
$ajax_loading: null,
$ajax_ok: null,
updated: function () {
@@ -1760,12 +1764,12 @@ WriteLiteral(@">
if (!model.$ajax_ok)
model.$ajax_ok = $('#ajaxInsuranceDetails_ok');
model.$ajax_loading.show();
var data = { InsuranceDetails: model.$DeviceBatch_Comments.tinymce().getContent() };
var data = { InsuranceDetails: model.$field.tinymce().getContent() };
$.ajax({
url: '");
#line 537 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 543 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Url.Action(MVC.API.DeviceBatch.UpdateInsuranceDetails(Model.DeviceBatch.Id)));
@@ -1788,17 +1792,18 @@ WriteLiteral("\',\r\n dataType: \'jso
" model.$ajax_loading.hide();\r\n " +
" }\r\n " +
"})\r\n }\r\n };\r\n\r" +
"\n model.$DeviceBatch_Comments.tinymce({\r\n " +
" theme: \'simple\',\r\n " +
" setup: function (ed) {\r\n //ed.onChange." +
"add(model.updatedThrottle);\r\n ed.onInit.a" +
"dd(function (ed) {\r\n $(ed.getWin()).b" +
"lur(model.updated);\r\n });\r\n " +
" }\r\n });\r\n " +
" });\r\n </script>\r\n");
"\n model.$field.tinymce({\r\n " +
" theme: \'simple\',\r\n add_unload_tr" +
"igger: false,\r\n schema: \"html5\",\r\n " +
" statusbar: false,\r\n " +
"setup: function (ed) {\r\n ed.on(\'init\', fu" +
"nction () {\r\n $(ed.getWin()).blur(mod" +
"el.updated);\r\n });\r\n " +
" }\r\n });\r\n " +
" });\r\n </script>\r\n");
#line 570 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 578 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1814,7 +1819,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">&lt;None Specified&gt;</span>");
#line 574 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 582 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1822,14 +1827,14 @@ WriteLiteral(">&lt;None Specified&gt;</span>");
#line default
#line hidden
#line 576 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 584 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(new HtmlString(Model.DeviceBatch.InsuranceDetails));
#line default
#line hidden
#line 576 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 584 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
}
@@ -1842,7 +1847,7 @@ WriteLiteral(" </div>\r\n </td>\r\n </tr>\r\n
WriteLiteral(" ");
#line 583 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 591 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(AjaxHelpers.AjaxLoader("ajaxComments"));
@@ -1851,7 +1856,7 @@ WriteLiteral(" ");
WriteLiteral("\r\n </th>\r\n <td>");
#line 585 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 593 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
if (canConfig)
{
@@ -1859,14 +1864,14 @@ WriteLiteral("\r\n </th>\r\n <td>");
#line default
#line hidden
#line 587 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 595 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.EditorFor(model => model.DeviceBatch.Comments));
#line default
#line hidden
#line 587 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 595 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
@@ -1879,7 +1884,7 @@ WriteLiteral(" type=\"text/javascript\"");
WriteLiteral(@">
$(function () {
var model = {
$DeviceBatch_Comments: $('#DeviceBatch_Comments'),
$field: $('#DeviceBatch_Comments'),
$ajax_loading: null,
$ajax_ok: null,
updated: function () {
@@ -1888,12 +1893,12 @@ WriteLiteral(@">
if (!model.$ajax_ok)
model.$ajax_ok = $('#ajaxComments_ok');
model.$ajax_loading.show();
var data = { Comments: model.$DeviceBatch_Comments.tinymce().getContent() };
var data = { Comments: model.$field.tinymce().getContent() };
$.ajax({
url: '");
#line 602 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 610 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Url.Action(MVC.API.DeviceBatch.UpdateComments(Model.DeviceBatch.Id)));
@@ -1914,16 +1919,17 @@ WriteLiteral("\',\r\n dataType: \'json\',\r\n
" + errorThrown);\r\n model.$ajax_loading.hi" +
"de();\r\n }\r\n })" +
"\r\n }\r\n };\r\n\r\n " +
" model.$DeviceBatch_Comments.tinymce({\r\n theme:" +
" \'simple\',\r\n setup: function (ed) {\r\n " +
" //ed.onChange.add(model.updatedThrottle);\r\n " +
" ed.onInit.add(function (ed) {\r\n $(" +
"ed.getWin()).blur(model.updated);\r\n });\r\n " +
" }\r\n });\r\n });\r\n " +
" </script>\r\n");
" model.$field.tinymce({\r\n theme: \'simple\',\r\n " +
" add_unload_trigger: false,\r\n " +
" schema: \"html5\",\r\n statusbar: false,\r\n " +
" setup: function (ed) {\r\n ed.on(\'ini" +
"t\', function () {\r\n $(ed.getWin()).blur(model" +
".updated);\r\n });\r\n }\r\n" +
" });\r\n });\r\n </script>\r" +
"\n");
#line 635 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 645 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1939,7 +1945,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">&lt;None Specified&gt;</span>");
#line 639 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 649 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
else
{
@@ -1947,14 +1953,14 @@ WriteLiteral(">&lt;None Specified&gt;</span>");
#line default
#line hidden
#line 641 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 651 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(new HtmlString(Model.DeviceBatch.Comments));
#line default
#line hidden
#line 641 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 651 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
}
@@ -1968,13 +1974,13 @@ WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
#line 648 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 658 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line default
#line hidden
#line 648 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 658 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
if (Model.CanDelete)
{
@@ -1982,14 +1988,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
#line 650 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 660 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.ActionLinkButton("Delete", MVC.API.DeviceBatch.Delete(Model.DeviceBatch.Id, true), "buttonDelete"));
#line default
#line hidden
#line 650 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 660 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
@@ -1999,7 +2005,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 652 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 662 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
if (Model.DeviceCount > 0)
{
if (Authorization.Has(Claims.Device.Actions.Export))
@@ -2009,14 +2015,14 @@ WriteLiteral(" ");
#line default
#line hidden
#line 656 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 666 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.ActionLinkButton("Export Devices", MVC.API.DeviceBatch.ExportDevices(Model.DeviceBatch.Id)));
#line default
#line hidden
#line 656 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 666 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
if (Authorization.Has(Claims.Device.Search))
@@ -2026,14 +2032,14 @@ WriteLiteral(" ");
#line default
#line hidden
#line 660 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 670 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
Write(Html.ActionLinkButton("View Devices", MVC.Search.Query(Model.DeviceBatch.Id.ToString(), "DeviceBatch")));
#line default
#line hidden
#line 660 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
#line 670 "..\..\Areas\Config\Views\DeviceBatch\Show.cshtml"
}
}