Widget:InsertPathToAddForm: Difference between revisions

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 1: Line 1:
<a id="insertAnchor"><!--{$path}--></a>
<a id="insertAnchor"><!--{$path}--></a>
<script>
<script>
$(document).ready(function(){
jQuery(document).ready(function(){
     $('#insertAnchor').click(function() {
     jQuery('#insertAnchor').click(function() {
         var selection = $(this).text().trim();
         var selection = $(this).text().trim();
         $('#<!--{$destinationId}-->').val(selection);
         jQuery('#<!--{$destinationId}-->').val(selection);
     });
     });
});
});
</script>
</script>

Revision as of 11:51, 20 April 2018

<a id="insertAnchor"></a> <script> jQuery(document).ready(function(){

   jQuery('#insertAnchor').click(function() {
       var selection = $(this).text().trim();
       jQuery('#').val(selection);
   });

}); </script>