diff options
author | shadlaws <shad@shadlaws.com> | 2013-03-02 12:28:49 +0100 |
---|---|---|
committer | shadlaws <shad@shadlaws.com> | 2013-03-02 12:28:49 +0100 |
commit | b83abf728fcc326d204e73ad7d0016b93e181269 (patch) | |
tree | a3355e2895fbe11b5c2d9845f89d4d716f062cde /lib/gallery.dialog.js | |
parent | 0d05e91cd3c5050c25133c864f8b789f499d8e17 (diff) |
#1639 - Make dialog "Cancel" links into buttons like "Submit"
- modified gallery.dialog.js: made cancel a <button>, added same classes as submit
- modified screen.css to size/position the cancel buttons correctly
Diffstat (limited to 'lib/gallery.dialog.js')
-rw-r--r-- | lib/gallery.dialog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js index 8fe85165..1c810171 100644 --- a/lib/gallery.dialog.js +++ b/lib/gallery.dialog.js @@ -96,11 +96,11 @@ form_loaded: function(event, ui) { // Should be defined (and localized) in the theme MSG_CANCEL = MSG_CANCEL || 'Cancel'; - var eCancel = '<a href="#" class="g-cancel g-left">' + MSG_CANCEL + '</a>'; + var eCancel = '<button class="g-cancel ui-state-default ui-corner-all">' + MSG_CANCEL + '</button>'; if ($("#g-dialog .submit").length) { $("#g-dialog .submit").addClass("ui-state-default ui-corner-all"); - $.fn.gallery_hover_init(); $("#g-dialog .submit").parent().append(eCancel); + $.fn.gallery_hover_init(); $("#g-dialog .g-cancel").click(function(event) { $("#g-dialog").dialog("close"); event.preventDefault(); |