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
40 // Setup page control scripts40 // Setup page control scripts
41 StringBuilder pageControlScripts = ViewBag.PageControlScripts;41 StringBuilder pageControlScripts = ViewBag.PageControlScripts;
42 42
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
43 pageControlScripts.Append(string.Format(@"51 pageControlScripts.Append(string.Format(@"
44 <script src=""{0}""></script>52 <script src=""{0}""></script>
45 <script src=""{1}""></script>53 <script src=""{1}""></script>
@@ -108,8 +116,6 @@ · 62 unmodified lines
108 if (ViewBag.PageRecordsForEachBinding != null) {116 if (ViewBag.PageRecordsForEachBinding != null) {
109 pageRecordsForEachBinding = ", " + ViewBag.PageRecordsForEachBinding;117 pageRecordsForEachBinding = ", " + ViewBag.PageRecordsForEachBinding;
110 }118 }
111
112 string recordsTitle = ViewBag.RecordsTitle ?? "Records";
113}119}
114@functions120@functions
115{121{
@@ -287,11 +293,6 @@ · 171 unmodified lines
287 ");293 ");
288 }294 }
289 295
290 pageControlScripts.AppendFormat(@"
291 $(""#titleText"").html(""{0}: <span data-bind='text: recordCount'>calculating...</span>"");",
292 recordsTitle
293 );
294
295 if (showIsDeletedToggleLink) {296 if (showIsDeletedToggleLink) {
296 if (showingDeletedRecords) {297 if (showingDeletedRecords) {
297 pageControlScripts.AppendFormat(@"298 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