Línea 88: |
Línea 88: |
| closeOnClickOutside: false, | | closeOnClickOutside: false, |
| overlay: false, | | overlay: false, |
− | buttons: [ {
| + | buttons: [ { |
− | name: 'Show me the search results', | + | name: 'Show me how to search (for the last time)', |
| onclick: function () { | | onclick: function () { |
| $('#searchInput').focus(); | | $('#searchInput').focus(); |
| $('#searchInput').val('Comunicación'); | | $('#searchInput').val('Comunicación'); |
− | $('#searchInput').focus(); | + | $('#searchInput').focus(); |
− | $('form#searchform').submit(); | + | var press = jQuery.Event("keypress"); |
− | mw.libs.guiders.next(); | + | press.which = 40; |
| + | $("#searchInput").trigger(press); |
| + | $('#searchInput').focus(); |
| } | | } |
− | } ], | + | } ], |
| } ) | | } ) |
| .next( 'buscar4' ) | | .next( 'buscar4' ) |
Línea 109: |
Línea 111: |
| position: 'topLeft', | | position: 'topLeft', |
| closeOnClickOutside: false, | | closeOnClickOutside: false, |
− | overlay: false | + | overlay: false, |
| + | buttons: [ { |
| + | name: 'Show me the search results', |
| + | onclick: function () { |
| + | $('#searchInput').focus(); |
| + | $('#searchInput').val('Comunicación'); |
| + | $('#searchInput').focus(); |
| + | $('form#searchform').submit(); |
| + | mw.libs.guiders.next(); |
| + | } |
| + | } ], |
| } ) | | } ) |
| .next( 'buscar5' ) | | .next( 'buscar5' ) |
Línea 118: |
Línea 130: |
| title: 'Puedes crear una página nueva.', | | title: 'Puedes crear una página nueva.', |
| description: 'También te ofrecerá la opción de crear una página con el nombre que buscaste', | | description: 'También te ofrecerá la opción de crear una página con el nombre que buscaste', |
− | attachTo: 'div[id^="p-Mallas_curriculares_por_nivel_"]', | + | attachTo: '.mw-search-createlink a', |
− | position: 'left', | + | position: 'topLeft', |
| closeOnClickOutside: false, | | closeOnClickOutside: false, |
| overlay: false | | overlay: false |