www/js/profile_mash.js

changeset 563
acdd54144838
parent 523
3cccf4392a25
child 688
0ce464e42d8b
--- a/www/js/profile_mash.js	Thu Dec 05 13:25:54 2019 +0100
+++ b/www/js/profile_mash.js	Thu Dec 05 22:47:40 2019 +0100
@@ -250,9 +250,13 @@
    var addButton, container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
    addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
      'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Add</span></div>');
+   expButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' +
+     'src="images/database.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Export</span></div>');
    container.append(addButton);
+   container.append(expButton);
    statusbar.append(container);
    addButton.jqxButton({ theme: theme, width: 90, height: 20 });
+   expButton.jqxButton({ theme: theme, width: 90, height: 20 });
    // add new row.
    addButton.click(function(event) {
     editrow = -1;
@@ -261,6 +265,9 @@
     editsteps('');
     $('#popupWindow').jqxWindow('open');
    });
+   expButton.click(function(event) {
+    window.open('export_mashs.php');
+   });
   },
   filterable: true,
   filtermode: 'excel',

mercurial