History

GSF.Web: Fixed record calculation sub-title in paged view model.

J. Ritchie Carroll committed 10 years ago

Commit b5314921 parent 003551d2 files · +9 −7Browse files

Showing the changes to Source/Libraries/GSF.Web/Model/Views (1 of 2 files). Show all

Unified · Split

Source/Libraries/GSF.Web/Model/Views/PagedViewModel.cshtml+8−7
@@ -40,6 +40,14 @@ · 39 unmodified lines
4040 // Setup page control scripts
4141 StringBuilder pageControlScripts = ViewBag.PageControlScripts;
4242
43+ pageControlScripts.AppendFormat(@"
44+ <script>
45+ $(""#titleText"").html(""{0}: <span data-bind='text: recordCount'>calculating...</span>"");
46+ </script>
47+ ",
48+ ViewBag.RecordsTitle ?? "Records"
49+ );
50+
4351 pageControlScripts.Append(string.Format(@"
4452 <script src=""{0}""></script>
4553 <script src=""{1}""></script>
@@ -108,8 +116,6 @@ · 62 unmodified lines
108116 if (ViewBag.PageRecordsForEachBinding != null) {
109117 pageRecordsForEachBinding = ", " + ViewBag.PageRecordsForEachBinding;
110118 }
111−
112− string recordsTitle = ViewBag.RecordsTitle ?? "Records";
113119 }
114120 @functions
115121 {
@@ -287,11 +293,6 @@ · 171 unmodified lines
287293 ");
288294 }
289295
290− pageControlScripts.AppendFormat(@"
291− $(""#titleText"").html(""{0}: <span data-bind='text: recordCount'>calculating...</span>"");",
292− recordsTitle
293− );
294−
295296 if (showIsDeletedToggleLink) {
296297 if (showingDeletedRecords) {
297298 pageControlScripts.AppendFormat(@"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t