www/js/rec_main.js

changeset 815
5714ea86187d
parent 813
752bb80362fb
--- a/www/js/rec_main.js	Fri Aug 05 10:44:59 2022 +0200
+++ b/www/js/rec_main.js	Fri Aug 05 10:53:56 2022 +0200
@@ -48,19 +48,6 @@
   source: dataAdapter,
   groupable: true,
   theme: theme,
-  showstatusbar: true,
-  renderstatusbar: function(statusbar) {
-   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>');
-   container.append(addButton);
-   statusbar.append(container);
-   addButton.jqxButton({ theme: theme, width: 100, height: 20 });
-   // add new recipe.
-   addButton.click(function(event) {
-    window.location.href = 'rec_new.php?return=rec_main.php';
-   });
-  },
   filterable: true,
   filtermode: 'excel',
   columns: [
@@ -76,7 +63,7 @@
     return 'Bekijk';
     }, buttonclick: function(row) {
      var datarecord = dataAdapter.records[row];
-     window.location.href = 'rec_edit.php?record=' + datarecord.record + '&return=rec_main.php';
+     window.location.href = 'rec_view.php?record=' + datarecord.record + '&return=rec_main.php';
     }
    }
   ],

mercurial