Skip to content

Commit 5c0b491

Browse files
committed
Merge pull request #8 from akubasa/fix-MaterialModal-close-function
FIXED missing id transfer parameter in MaterialModal:closeModal function
2 parents dc0cc40 + baed3e5 commit 5c0b491

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/gwt/material/design/client/ui/MaterialModal.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,12 @@ public void hide(){
8282
public static native void showModal(String id)/*-{
8383
$wnd.jQuery('#' + id).openModal();
8484
}-*/;
85-
86-
public static native void closeModal()/*-{
85+
86+
public static native void closeModal(String id)/*-{
8787
$wnd.jQuery('#' + id).closeModal();
8888
}-*/;
8989

90-
91-
90+
public static void closeModal() {
91+
closeModal(panel.getElement().getId());
92+
}
9293
}

0 commit comments

Comments
 (0)