From: Thierry Parmentelat Date: Mon, 7 Oct 2013 10:36:42 +0000 (+0200) Subject: use bootstrap to render icons that formerly used jquery-ui X-Git-Tag: myslice-0.2-5~18 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=f31075e41cd2e7b4716bb85857bd919a46770ba0 use bootstrap to render icons that formerly used jquery-ui --- diff --git a/plugins/hazelnut/static/js/hazelnut.js b/plugins/hazelnut/static/js/hazelnut.js index f38d5184..e9753e2b 100644 --- a/plugins/hazelnut/static/js/hazelnut.js +++ b/plugins/hazelnut/static/js/hazelnut.js @@ -112,7 +112,7 @@ /* Setup the SelectAll button in the dataTable header */ /* xxx not sure this is still working */ var oSelectAll = $('#datatableSelectAll-'+ this.options.plugin_uuid); - oSelectAll.html("Select All"); + oSelectAll.html("Select All"); oSelectAll.button(); oSelectAll.css('font-size','11px'); oSelectAll.css('float','right'); diff --git a/plugins/query_editor/static/js/query_editor.js b/plugins/query_editor/static/js/query_editor.js index 90d113dc..fac8c729 100644 --- a/plugins/query_editor/static/js/query_editor.js +++ b/plugins/query_editor/static/js/query_editor.js @@ -56,7 +56,7 @@ // XXX Why isn't it done statically ? var nCloneTh = document.createElement( 'th' ); var nCloneTd = document.createElement( 'td' ); - nCloneTd.innerHTML = ""; + nCloneTd.innerHTML = ""; //nCloneTd.innerHTML = ''; nCloneTh.innerHTML = 'Info'; nCloneTd.className = "center"; @@ -93,16 +93,16 @@ this.elmt('table tbody td span').on('click', function() { var nTr = this.parentNode.parentNode; // use jQuery UI instead of images to keep a common UI - // class="ui-icon treeclick ui-icon-triangle-1-s tree-minus" - // East oriented Triangle class="ui-icon-triangle-1-e" - // South oriented Triangle class="ui-icon-triangle-1-s" + // class="glyphicon glyphicon-chevron-down treeclick tree-minus" + // East oriented Triangle class="glyphicon-chevron-right" + // South oriented Triangle class="glyphicon-chevron-down" - if (this.className=="ui-icon ui-icon-triangle-1-e") { - this.removeClass("ui-icon-triangle-1-e").addClass("ui-icon-triangle-1-s"); + if (this.hasClass("glyphicon-chevron-right")) { + this.removeClass("glyphicon-chevron-right").addClass("glyphicon-chevron-down"); // XXX ?????? metaTable.fnOpen(nTr, this.fnFormatDetails(metaTable, nTr, self.options.plugin_uuid+'_div'), 'details' ); } else { - this.removeClass("ui-icon-triangle-1-s").addClass("ui-icon-triangle-1-e"); + this.removeClass("glyphicon-chevron-down").addClass("glyphicon-chevron-right"); metaTable.fnClose(nTr); } }); diff --git a/plugins/query_editor/templates/query_editor.html b/plugins/query_editor/templates/query_editor.html index cde2fd41..202d9ccb 100644 --- a/plugins/query_editor/templates/query_editor.html +++ b/plugins/query_editor/templates/query_editor.html @@ -25,7 +25,7 @@ EOF; --> {% for field in fields %} - + {{ field.name }} {{ field.resource_type }} {{ field.type }} diff --git a/plugins/resources_selected/static/js/resources_selected.js b/plugins/resources_selected/static/js/resources_selected.js index a16d4d51..d64d7171 100644 --- a/plugins/resources_selected/static/js/resources_selected.js +++ b/plugins/resources_selected/static/js/resources_selected.js @@ -153,7 +153,7 @@ switch(data.status) { case FIELD_REQUEST_PENDING: msg = 'PENDING'; - button = ""; + button = ""; break; case FIELD_REQUEST_SUCCESS: msg = 'SUCCESS'; @@ -394,7 +394,7 @@ var urn = r.urn; time = r.timeslot; - var SPAN = ""; + var SPAN = ""; var slot = "" + time + ""; //ioi // ioi var newline=Array(); @@ -411,7 +411,7 @@ var node = r.urn; time = r.timeslot; - var SPAN = ""; + var SPAN = ""; var slot = "" + time + ""; //ioi // ioi var newline=Array(); @@ -426,7 +426,7 @@ var node = r.urn; var time = r.timeslot; - var SPAN = ""; + var SPAN = ""; var slot = "" + time + ""; // ioi var newline=Array();