Skip to content

Instantly share code, notes, and snippets.

@steamraven
Created May 17, 2011 20:52
Show Gist options
  • Save steamraven/977366 to your computer and use it in GitHub Desktop.
Save steamraven/977366 to your computer and use it in GitHub Desktop.
filez email js patch
diff --git a/resources/js/filez.js b/resources/js/filez.js
index 0d1a770..f7d9739 100755
--- a/resources/js/filez.js
+++ b/resources/js/filez.js
@@ -112,7 +112,7 @@ $.fn.initFileActions = function () {
e.preventDefault ();
$('#share-modal').dialog ('close');
- $('form', modal).attr ('action', $(this).attr ('href'));
+ $('form', $('#email-modal')).attr ('action', $(this).attr ('href'))
$('.open-email-client')
.attr ('href', 'mailto:?body='+settings.messages.emailMessage+'
.click (function (e) { $('.ui-dialog-content').dialog('close');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment