[dw-free] Revamp /update
[commit: http://hg.dwscoalition.org/dw-free/rev/91a2197865ae]
http://bugs.dwscoalition.org/show_bug.cgi?id=2524
Don't wrap in a link -- no longer needed, because these are now buttons.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2524
Don't wrap in a link -- no longer needed, because these are now buttons.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/js/jquery.iconselector.js
- htdocs/js/jquery.postform.js
-------------------------------------------------------------------------------- diff -r e7abc197652a -r 91a2197865ae htdocs/js/jquery.iconselector.js --- a/htdocs/js/jquery.iconselector.js Wed Dec 14 13:26:27 2011 +0800 +++ b/htdocs/js/jquery.iconselector.js Wed Dec 14 19:54:55 2011 +0800 @@ -8,7 +8,7 @@ $.fn.iconselector.owner = $(this); if( opts.selectorButtons ) { - $(opts.selectorButtons).not("a").wrap("<a href='#'></a>").end() + $(opts.selectorButtons) .click(function(e) { _open.apply( $.fn.iconselector.owner, [ opts ] ); e.preventDefault(); diff -r e7abc197652a -r 91a2197865ae htdocs/js/jquery.postform.js --- a/htdocs/js/jquery.postform.js Wed Dec 14 13:26:27 2011 +0800 +++ b/htdocs/js/jquery.postform.js Wed Dec 14 19:54:55 2011 +0800 @@ -12,7 +12,7 @@ var $select = $("#iconselect"); if ( $select.length == 0 ) return; - $preview.prepend("<ul class='icon-functions'><li><button id='icon_browser_link' class='ui-button ui-state-default'>browse</button></li><li><button id='icon_random_link' class='ui-button ui-state-default'>random</a></li></ul>"); + $preview.prepend("<ul class='icon-functions'><li><button id='icon_browser_link' class='ui-button ui-state-default'>browse</button></li><li><button id='icon_random_link' class='ui-button ui-state-default'>random</button></li></ul>"); function update_icon_preview() { var icons = formData.icons; --------------------------------------------------------------------------------