Changeset 36991
- Timestamp:
- 03/14/2016 08:54:58 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r36985 r36991 1404 1404 ?> 1405 1405 <div id="wp-link-backdrop" style="display: none"></div> 1406 <div id="wp-link-wrap" class="wp-core-ui" style="display: none" >1406 <div id="wp-link-wrap" class="wp-core-ui" style="display: none" role="dialog" aria-labelledby="link-modal-title"> 1407 1407 <form id="wp-link" tabindex="-1"> 1408 1408 <?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?> 1409 <div id="link-modal-title"> 1410 <?php _e( 'Insert/edit link' ) ?> 1411 <button type="button" id="wp-link-close"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></button> 1412 </div> 1409 <h1 id="link-modal-title"><?php _e( 'Insert/edit link' ) ?></h1> 1410 <button type="button" id="wp-link-close"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></button> 1413 1411 <div id="link-selector"> 1414 1412 <div id="link-options"> … … 1422 1420 </div> 1423 1421 <div class="link-target"> 1424 <label><span> </span>1422 <label><span></span> 1425 1423 <input type="checkbox" id="wp-link-target" /> <?php _e( 'Open link in a new tab' ); ?></label> 1426 1424 </div> … … 1429 1427 <div class="submitbox"> 1430 1428 <div id="wp-link-cancel"> 1431 < a class="submitdelete deletion" href="#"><?php _e( 'Cancel' ); ?></a>1429 <button type="button" class="button"><?php _e( 'Cancel' ); ?></button> 1432 1430 </div> 1433 1431 <div id="wp-link-update"> -
trunk/src/wp-includes/css/editor.css
r36985 r36991 1075 1075 margin: 1px 0 0; 1076 1076 line-height: 150%; 1077 border: 0 none;1077 border: 0; 1078 1078 outline: none; 1079 1079 display: block; … … 1389 1389 font-weight: 600; 1390 1390 line-height: 36px; 1391 margin: 0; 1391 1392 padding: 0 36px 0 16px; 1392 top: 0;1393 right: 0;1394 left: 0;1395 1393 } 1396 1394 … … 1439 1437 } 1440 1438 1441 #wp-link-wrap.search-panel-visible #link-selector {1442 -webkit-overflow-scrolling: touch;1443 }1444 1445 1439 #wp-link ol, 1446 1440 #wp-link ul { … … 1495 1489 } 1496 1490 1497 #wp-link li {1498 clear: both;1499 margin-bottom: 0;1500 border-bottom: 1px solid #f1f1f1;1501 color: #32373c;1502 padding: 4px 6px 4px 10px;1503 cursor: pointer;1504 position: relative;1505 }1506 1507 #wp-link li:hover {1508 background: #eaf2fa;1509 color: #151515;1510 }1511 1512 #wp-link li.unselectable {1513 border-bottom: 1px solid #ddd;1514 }1515 1516 #wp-link li.unselectable:hover {1517 background: #fff;1518 cursor: auto;1519 color: #32373c;1520 }1521 1522 #wp-link li.selected {1523 background: #ddd;1524 color: #32373c;1525 }1526 1527 #wp-link li.selected .item-title {1528 font-weight: bold;1529 }1530 1531 #wp-link li:last-child {1532 border: none;1533 }1534 1535 #wp-link .item-title {1536 display: inline-block;1537 width: 80%;1538 width: -webkit-calc(100% - 68px);1539 width: calc(100% - 68px);1540 word-wrap: break-word;1541 }1542 1543 #wp-link .item-info {1544 text-transform: uppercase;1545 color: #666;1546 font-size: 11px;1547 position: absolute;1548 right: 5px;1549 top: 5px;1550 }1551 1552 1491 #wp-link .submitbox { 1553 1492 padding: 8px 16px; … … 1572 1511 #wp-link-submit { 1573 1512 float: right; 1574 margin-bottom: 0;1575 1513 } 1576 1514 … … 1584 1522 } 1585 1523 1586 #wp-link-wrap.search-panel-visible #link-selector {1587 bottom: 52px;1588 }1589 1590 1524 #wp-link-cancel { 1591 1525 line-height: 32px; 1526 } 1527 1528 #wp-link .link-target { 1529 padding-top: 10px; 1530 } 1531 1532 #wp-link .submitbox .button { 1533 margin-bottom: 0; 1592 1534 } 1593 1535 } -
trunk/src/wp-includes/js/wplink.js
r36984 r36991 36 36 }); 37 37 38 inputs.close.add( inputs.backdrop ).add( '#wp-link-cancel a' ).click( function( event ) {38 inputs.close.add( inputs.backdrop ).add( '#wp-link-cancel button' ).click( function( event ) { 39 39 event.preventDefault(); 40 40 wpLink.close();
Note: See TracChangeset
for help on using the changeset viewer.