+
+
+
+
+
+
+
+
+
@@ -129,6 +153,24 @@
selectFormat();
});
+ // Copy the selected template
+ $("#copy-btn").click(function(e) {
+ var id = $("#predefined").val();
+
+ //console.log( encodeURIComponent( $("#format").val() ) );
+
+ formatTemplates.forEach(function (item, index) {
+ if( item.id == id ) {
+ $("#format").val( decodeURIComponent(item.format) );
+ }
+ });
+ });
+
+ // Clear the selected template
+ $("#clear-btn").click(function(e) {
+ $("#format").val( "" );
+ });
+
// Store the format
$("#format-btn").click(function(e) {
var s = $("#format").val();