Skip to content

Commit

Permalink
Dev: Fix some styling for token attribute mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Feb 4, 2016
1 parent 09e89b9 commit af07551
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 3 additions & 1 deletion scripts/admin/attributeMapToken.js
Expand Up @@ -74,13 +74,15 @@ $(document).ready(function(){
// Remove the text input if dropped out of the new attributes column
if(!$(this).hasClass('newcreate') && $('input[type="text"]', newDraggable).length > 0) {
$('input[type="text"]', newDraggable).remove();
$(newDraggable).text($(newDraggable).attr('data-name'));
$(newDraggable).html('<div class="panel-body">' + $(newDraggable).attr('data-name') + "</div>");
}

// Dropped in new attributes
if($(this).hasClass('newcreate')) {
$(newDraggable).html($(newDraggable).attr('id').replace('t_',''));
$(newDraggable).prepend('<input type="text" id="td_'+$(newDraggable).attr('id')+'" value=\"'+$(newDraggable).attr('data-name')+'\">');
}

// Reset the mappable attribute classes
$('.mappable-attribute-wrapper').removeClass('paired');
$('.mappable-attribute-wrapper .token-attribute').closest('.mappable-attribute-wrapper').addClass('paired');
Expand Down
10 changes: 3 additions & 7 deletions styles/Sea_Green/css/attributeMapToken.css
Expand Up @@ -57,9 +57,9 @@
}

div.mappable-attribute-wrapper {
width : 90%;
margin: 2px auto;
padding:2px;
width : 80%;
margin: 6px auto;
padding:6px;
}

div.attribute-item {
Expand All @@ -70,10 +70,6 @@ div.attribute-item {
}

div.mappable-attribute-wrapper div.attribute-item {
width : 88.88888888888889%;
margin: 0 auto;
padding:4px;
text-align:center;
}


Expand Down

0 comments on commit af07551

Please sign in to comment.