Share form submit - added source to hidden input
This commit is contained in:
parent
9ec26146fb
commit
d52b9faa89
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 -->
|
||||
|
||||
|
|
Reference in a new issue