Skip to content

Commit

Permalink
Merge pull request #406 from mikeivanov/fix-dialog-jquery
Browse files Browse the repository at this point in the history
Use direct DOM calls to make dialog methods work
  • Loading branch information
rabbibotton authored Jan 26, 2025
2 parents 5fcf8c7 + c1a6635 commit 4359d00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/clog-element-common.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,12 @@ firefox and dialog does not work at all on IE."))
;;;;;;;;;;;;;;;;;

(defgeneric show-dialog (clog-dialog &key modal)
(:documentation "Close dialog."))
(:documentation "Show dialog."))

(defmethod show-dialog ((obj clog-dialog) &key (modal nil))
(if modal
(jquery-execute obj (format nil "showModal()"))
(jquery-execute obj (format nil "show()"))))
(jquery-execute obj (format nil "get(0).showModal()"))
(jquery-execute obj (format nil "get(0).show()"))))

;;;;;;;;;;;;;;;;;;
;; close-dialog ;;
Expand All @@ -322,7 +322,7 @@ firefox and dialog does not work at all on IE."))
(:documentation "Close dialog."))

(defmethod close-dialog ((obj clog-dialog))
(jquery-execute obj (format nil "close()")))
(jquery-execute obj (format nil "get(0).close()")))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Implementation - clog-hr
Expand Down

0 comments on commit 4359d00

Please sign in to comment.