Sophivorus has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/345739 )

Change subject: Keep data when switching templates on a new reference
......................................................................


Keep data when switching templates on a new reference

Bug: T148924
Change-Id: Ieb145dc09cdb4fd401db3d78ca63c8545a960468
---
M proveit.js
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Sophivorus: Verified; Looks good to me, approved



diff --git a/proveit.js b/proveit.js
index 4c03730..5c088a9 100755
--- a/proveit.js
+++ b/proveit.js
@@ -990,6 +990,7 @@
                                var reference = event.data;
                                reference.template = $( this ).val();
                                $.cookie( 'proveit-last-template', 
reference.template ); // Remember the user choice
+                               reference.loadFromForm();
                                table.replaceWith( reference.toTable() );
                        });
 

-- 
To view, visit https://gerrit.wikimedia.org/r/345739
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ieb145dc09cdb4fd401db3d78ca63c8545a960468
Gerrit-PatchSet: 1
Gerrit-Project: wikipedia/gadgets/ProveIt
Gerrit-Branch: master
Gerrit-Owner: Sophivorus <[email protected]>
Gerrit-Reviewer: Sophivorus <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to