Skip to content

Commit

Permalink
CCC SSP-545 Manage Portlets Fixed several bugs with the inline-JS sty…
Browse files Browse the repository at this point in the history
…le block and the dataTable itself
  • Loading branch information
darkape authored and James Wennmacher committed Aug 20, 2015
1 parent 241cd98 commit 1de0111
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ up.jQuery(function() {
{ mData: 'id', sType: 'html', bSearchable: false, sWidth: '10%' }, // Delete Link
{
mData: function(source, type) {
// this function sets the value (set), returns original source of value (undefined), and then returns the value
if (type === undefined) {
// Send the raw data back
return source.categories;
} else if (type === 'set') {
source.display = source.categories.join();
Expand All @@ -230,7 +230,11 @@ up.jQuery(function() {
} // Categories - hidden
],
fnInitComplete: function (oSettings) {
portletList_configuration.main.table.fnDraw();
//portletList_configuration.main.table.fnDraw();
// Adding formatting to sDom
$("div.toolbar-br").html('<BR>');
$("div.toolbar-filter").html('<h4><spring:message code="filters" htmlEscape="false" javaScriptEscape="true"/></h4>');
$(".column-filter-widget select").addClass("form-control");
},
fnServerData: function (sUrl, aoData, fnCallback, oSettings) {
oSettings.jqXHR = $.ajax({
Expand Down Expand Up @@ -268,7 +272,7 @@ up.jQuery(function() {
$('td:eq(4)', nRow).html( getDeleteURL(aData.id) );
},
// Setting the top and bottom controls
sDom: 'r<"row alert alert-info view-filter"<"toolbar-filter"><W><"toolbar-br"><"dataTables-inline dataTables-right"p><"dataTables-inline dataTables-left"i><"dataTables-inline dataTables-left"l>><"row"<"span12"t>>>',
sDom: 'r<"row alert alert-info view-filter"<"toolbar-filter"><"toolbar-filter-options"W><"toolbar-br"><"dataTables-inline dataTables-right"p><"dataTables-inline dataTables-left"i><"dataTables-inline dataTables-left"l>><"row"<"span12"t>>',
// Filtering
oColumnFilterWidgets: {
sSeparator: ',', // Used for multivalue column Categories
Expand All @@ -281,15 +285,9 @@ up.jQuery(function() {
};
initializeTable();
// Hide the out of the box search and populate it with our text box
$('#${n}portletBrowser .portlet-search-input').keyup(function(){
portletList_configuration.main.table.fnFilter( $(this).val() );
});
// Adding formatting to sDom
$("div.toolbar-br").html('<BR>');
$("div.toolbar-filter").html('<h4><spring:message code="filters" htmlEscape="false" javaScriptEscape="true"/></h4>');
$(".column-filter-widget select").addClass("form-control");
});
</script>

0 comments on commit 1de0111

Please sign in to comment.