diff --git a/wise-webapp/src/main/webapp/html/css/styles.less b/wise-webapp/src/main/webapp/html/css/styles.less index 1c388466..b114d265 100644 --- a/wise-webapp/src/main/webapp/html/css/styles.less +++ b/wise-webapp/src/main/webapp/html/css/styles.less @@ -89,4 +89,8 @@ body { } -/* ----------------------------- Buttons -------------------------------- */ \ No newline at end of file +/* ----------------------------- Buttons -------------------------------- */ +#buttons { + margin-left: 100% - @table-width; + margin-bottom: @base-margin; +} \ No newline at end of file diff --git a/wise-webapp/src/main/webapp/html/js/es_date.js b/wise-webapp/src/main/webapp/html/js/es_date.js deleted file mode 100644 index ca2f5732..00000000 --- a/wise-webapp/src/main/webapp/html/js/es_date.js +++ /dev/null @@ -1,25 +0,0 @@ -jQuery.fn.dataTableExt.oSort['es_date-asc'] = function(a,b) { - var ukDatea = a.split('/'); - var ukDateb = b.split('/'); - - var x = (ukDatea[2] + ukDatea[1] + ukDatea[0]) * 1; - var y = (ukDateb[2] + ukDateb[1] + ukDateb[0]) * 1; - - return ((x < y) ? -1 : ((x > y) ? 1 : 0)); -}; - -jQuery.fn.dataTableExt.oSort['es_date-desc'] = function(a,b) { - var ukDatea = a.split('/'); - var ukDateb = b.split('/'); - - var x = (ukDatea[2] + ukDatea[1] + ukDatea[0]) * 1; - var y = (ukDateb[2] + ukDateb[1] + ukDateb[0]) * 1; - - return ((x < y) ? 1 : ((x > y) ? -1 : 0)); -};/** - * Created by IntelliJ IDEA. - * User: belbo - * Date: 10/11/11 - * Time: 11:33 AM - * To change this template use File | Settings | File Templates. - */ diff --git a/wise-webapp/src/main/webapp/html/js/jquery.dataTables.plugins.js b/wise-webapp/src/main/webapp/html/js/jquery.dataTables.plugins.js new file mode 100644 index 00000000..cbbd9848 --- /dev/null +++ b/wise-webapp/src/main/webapp/html/js/jquery.dataTables.plugins.js @@ -0,0 +1,43 @@ +jQuery.fn.dataTableExt.oSort['es_date-asc'] = function(a,b) { + var esDatea = a.split('/'); + var esDateb = b.split('/'); + + var x = (esDatea[2] + esDatea[1] + esDatea[0]) * 1; + var y = (esDateb[2] + esDateb[1] + esDateb[0]) * 1; + + return ((x < y) ? -1 : ((x > y) ? 1 : 0)); +}; + +jQuery.fn.dataTableExt.oSort['es_date-desc'] = function(a,b) { + var esDatea = a.split('/'); + var esDateb = b.split('/'); + + var x = (esDatea[2] + esDatea[1] + esDatea[0]) * 1; + var y = (esDateb[2] + esDateb[1] + esDateb[0]) * 1; + + return ((x < y) ? 1 : ((x > y) ? -1 : 0)); +}; + +jQuery.fn.dataTableExt.selectAllMaps = function() { + var total = $('.select input:checkbox[id!="selectAll"]').size(); + var selected = $('.select input:checked[id!="selectAll"]').size(); + if (selected < total) { + $('.select input:!checked[id!="selectAll"]').each(function(index) { + $(this).prop("checked", true); + }); + } + else { + $('.select input:!checked[id!="selectAll"]').each(function(index) { + $(this).prop("checked", false); + }); + } +} + +jQuery.fn.dataTableExt.getSelectedMaps = function() { + var ids = []; + $('.select input:checked[id!="selectAll"]').each(function(index) { + ids.push($(this).attr("id")); + }); + + return ids; +} diff --git a/wise-webapp/src/main/webapp/html/workspace.html b/wise-webapp/src/main/webapp/html/workspace.html index ab29d166..d32e704b 100644 --- a/wise-webapp/src/main/webapp/html/workspace.html +++ b/wise-webapp/src/main/webapp/html/workspace.html @@ -16,20 +16,21 @@ - + @@ -114,6 +115,40 @@ }) }); + + +
@@ -122,10 +157,13 @@ -