Skip to content

Commit

Permalink
Issue #27 - eliminate title attr from link. Delete commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed May 31, 2019
1 parent 75ec3fe commit 93d5592
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions blocks/oik-blocklist/blocklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,7 @@ function BlockCreateItem( block, component ) {
}

function BlockCreateBlockLink( block, component ) {
//return( BlockCreateItem( block, component ));

var url = ajaxurl;
//console.log( ajaxurl );
//console.log( userSettings);
var keywords = block.keywords ? block.keywords.join() : null;
url = addQueryArgs( url, { action: 'oiksc_create_or_update_block' });
url = addQueryArgs( url, { title: block.title });
Expand All @@ -158,20 +154,13 @@ function BlockCreateBlockLink( block, component ) {
url = addQueryArgs( url, { component: component});
url = addQueryArgs( url, { keywords: keywords});
url = addQueryArgs( url, { category: block.category});

//var blockIcon = <BlockIcon icon={block.icon.src}/>

console.log( block.icon );
//var blockContent = getBlockContent( block.icon.src );
var blockIcon = renderToString( <BlockIcon icon={block.icon.src } /> );
url = addQueryArgs( url, { icon: blockIcon });
//console.log( url );
return( <a href={ url } title={`Create {block.title}`}>

return( <a href={ url }>
Create/Update: {block.title} - {block.name}<br />
</a>
);

}

export { BlockListStyled };

0 comments on commit 93d5592

Please sign in to comment.