1
0
Fork 0

Share form submit - added source to hidden input

This commit is contained in:
Dan Hromada 2014-06-28 09:10:10 +02:00
parent 9ec26146fb
commit d52b9faa89
2 changed files with 6 additions and 2 deletions

View file

@ -572,12 +572,15 @@
popup.el.shareBtn.on('click', function(e) {
// Frfom popup form create share form
// Form popup form create share form
popup.el.popupForm.attr({
action: popup.shareUrl,
target: '_blank'
});
// Paste script source to hodden input
popup.el.popupForm.find('input[name="script"]').val(popup.getCurrentData().source);
});
// Animate share button if customjs enabled

View file

@ -49,7 +49,7 @@
<div class="include__popbox__body">
<textarea name="extra-scripts" id="extra-scripts"></textarea>
</div>
<div class="include__popbox__screenmask" id="screen-mask" title="ahaha"></div>
<div class="include__popbox__screenmask" id="screen-mask" title=""></div>
</div>
</div><!-- .include -->
@ -58,6 +58,7 @@
<div class="pure-g source">
<div class="pure-u-1 source__editor">
<pre id="ace-editor"></pre>
<input type="hidden" name="script" value="">
</div>
</div><!-- .source -->