Skip to content

Commit

Permalink
Some cosmetic changes for the deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Mar 1, 2015
1 parent 54bbf8c commit ca65a13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
6 changes: 1 addition & 5 deletions editor/css/complex.css
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,6 @@ img.optional {
cursor: pointer;
}

img.deprecated {
cursor: pointer;
}

span.deprecated {
padding: 0 4px 0 4px;
background: rgba(248, 103, 24, 0.33);
Expand All @@ -485,7 +481,7 @@ td.wizarddeprecated {
background: rgba(248, 103, 24, 0.33);
}

td.flashonly {
td.flashonly, td.deprecated{
width: 32px;
}

Expand Down
15 changes: 8 additions & 7 deletions editor/js/toolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,13 @@ var EDITOR = (function ($, parent) {
.attr('src', 'editor/img/deprecated.png')
.attr('title', options.deprecated)
.addClass("deprecated"));
if (options.optional == 'true') {
var opt = $('<img>')
.attr('id', 'optbtn_' + name)
.attr('src', 'editor/img/optional.png')
.addClass("optional");
td.append(opt);
}
if (options.flashonly)
{
td.addClass('flashonly');
Expand Down Expand Up @@ -340,13 +347,7 @@ var EDITOR = (function ($, parent) {
//output_string += '<td class="wizardvalue">' + displayDataType(value, options, name, key) + '</td>';
//output_string += '</tr>';
$(id).append(tr);
if (options.deprecated) {
$("#deprbtn_"+ name).on("click", function () {
var this_name = name;
removeDeprecatedProperty(this_name);
});
}
else if (options.optional == 'true') {
if (options.optional == 'true') {
$("#optbtn_"+ name).on("click", function () {
var this_name = name;
removeOptionalProperty(this_name);
Expand Down

0 comments on commit ca65a13

Please sign in to comment.