Fixed priority input broken with Polymer 0.5.1.

This commit is contained in:
Oliver Hamlet
2014-11-13 11:19:47 +00:00
parent 8aab542cf7
commit f9ed7a0881
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -25,6 +25,7 @@ loot-clear-metadata
<link rel="import" href="../bower_components/paper-item/paper-item.html">
<link rel="import" href="../bower_components/paper-checkbox/paper-checkbox.html">
<link rel="import" href="../bower_components/paper-input/paper-input.html">
<link rel="import" href="../bower_components/paper-input/paper-input-decorator.html">
<link rel="import" href="../bower_components/paper-tabs/paper-tabs.html">
<link rel="import" href="../bower_components/paper-button/paper-button.html">
<link rel="import" href="../bower_components/paper-dropdown/paper-dropdown.html">
@@ -242,7 +243,9 @@ loot-clear-metadata
</core-tooltip>
<div horizontal layout center>
<div>Priority Value</div>
<paper-input type="number" id="priorityValue" max="999999" min="-999999" step="1" value="0" error="Input must be an integer!"></paper-input>
<paper-input-decorator>
<input id="priorityValue" is="core-input" type="number" max="999999" min="-999999" step="1" value="0" preventInvalidInput>
</paper-input-decorator>
</div>
<div id="tableTabs">
<paper-tabs selected="loadAfter" valueattr="data-for" scrollable>
+1 -1
View File
@@ -69,7 +69,7 @@
pluginCard.getElementById('enableEdits').label = l10n.translate("Enable Edits").fetch();
pluginCard.getElementById('globalPriority').parentElement.label = l10n.translate("Global priorities are compared against all other plugins. Normal priorities are compared against only conflicting plugins.").fetch();
pluginCard.getElementById('globalPriority').label = l10n.translate("Global Priority").fetch();
pluginCard.getElementById('priorityValue').previousElementSibling.textContent = l10n.translate("Priority Value").fetch();
pluginCard.getElementById('priorityValue').parentElement.previousElementSibling.textContent = l10n.translate("Priority Value").fetch();
pluginCard.getElementById('fileTabs').querySelector('[data-for=loadAfter]').textContent = l10n.translate("Load After").fetch();
pluginCard.getElementById('fileTabs').querySelector('[data-for=req]').textContent = l10n.translate("Requirements").fetch();