Skip to content

Commit

Permalink
Merge pull request #1988 from wikimedia/fix/edit-pencil-peek/T182902
Browse files Browse the repository at this point in the history
Fix edit pencil peeking when they should not
  • Loading branch information
joewalsh committed Dec 15, 2017
2 parents b1227bf + 971e044 commit 9aa68e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion Wikipedia/Code/WebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,6 @@ - (WKWebViewConfiguration *)configuration {
WKUserContentController *userContentController = [[WKUserContentController alloc] init];

NSArray *handlerNames = @[
@"peek",
@"linkClicked",
@"imageClicked",
@"referenceClicked",
Expand Down
1 change: 1 addition & 0 deletions Wikipedia/assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ const applyTransformationsToFragment = (fragment, article, isLead) => {
const heading = fragment.querySelector('.section_heading[data-id]')
heading.appendChild(requirements.editTransform.newEditSectionButton(fragment, heading.getAttribute('data-id')))
}
fragment.querySelectorAll('a.pagelib_edit_section_link').forEach(anchor => {anchor.href = 'WMFEditPencil'});
}

const tableFooterDivClickCallback = container => {
Expand Down
1 change: 1 addition & 0 deletions www/js/sections.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ const applyTransformationsToFragment = (fragment, article, isLead) => {
const heading = fragment.querySelector('.section_heading[data-id]')
heading.appendChild(requirements.editTransform.newEditSectionButton(fragment, heading.getAttribute('data-id')))
}
fragment.querySelectorAll('a.pagelib_edit_section_link').forEach(anchor => {anchor.href = 'WMFEditPencil'});
}

const tableFooterDivClickCallback = container => {
Expand Down

0 comments on commit 9aa68e2

Please sign in to comment.