Created
October 12, 2012 17:42
-
-
Save fellz/3880460 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn fetch-messages [] | |
(remote (reply-messages "506e9b45e4b0cc50467f9ef2") [result] | |
(append ($ :#reply-messages) result)) | |
) | |
(defn get-replies [] | |
;here i make request to store data to db and then i want to fetch that data from db with fetch-messages | |
(remote (reply-post { :mid "506e9b45e4b0cc50467f9ef2", :reply "Hello world", :usermail "roman@gmail.com"}) [result] | |
(fetch-messages)) | |
) | |
;here event handler | |
(on ($ :body) :click :#reply-but get-replies) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment