מדיה ויקי:BookmarkletsInit.js – הבדלי גרסאות
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 24: | שורה 24: | ||
$( bookmarklets ).each( function( i, bookmarklet ) { | $( bookmarklets ).each( function( i, bookmarklet ) { | ||
$ | var $link, $item; | ||
$link = $( '<a>' ) | |||
.prop( 'href', stubparts[0] + bookmarklet.func + | |||
stubparts[1] + bookmarklet.sourcepage + | |||
stubparts[2] + bookmarklet.func + | |||
stubparts[3] ) | |||
.click( bookmarkletsWrong ) | |||
.text( bookmarklet.name ); | |||
$item = $( '<li>' ) | |||
.text( bookmarklet.description ) | .text( bookmarklet.description ) | ||
.append( $ | .append( $link ); | ||
$bookmarkletsList.append( $item ); | |||
} ); | } ); | ||