Skip to content

Commit

Permalink
AssetsView input placeholder text from configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ateshuseyin committed Oct 31, 2017
1 parent 8c9ffa9 commit 76d92bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/asset_manager/config/config.js
@@ -1,4 +1,4 @@
module.exports = {
module.exports = {
// Default assets
// eg. [
// 'https://...image1.png',
Expand Down Expand Up @@ -76,4 +76,7 @@ module.exports = {

// Default title for the asset manager modal
modalTitle: 'Select Image',

//Default placeholder for input
inputPlaceholder: 'http://path/to/the/image.jpg'
};
2 changes: 1 addition & 1 deletion src/asset_manager/view/AssetsView.js
Expand Up @@ -16,7 +16,7 @@ module.exports = Backbone.View.extend({
<div class="${pfx}assets-header">
<form class="${pfx}add-asset">
<div class="${ppfx}field ${pfx}add-field">
<input placeholder="http://path/to/the/image.jpg"/>
<input placeholder="${view.config.inputPlaceholder}"/>
</div>
<button class="${ppfx}btn-prim">${view.config.addBtnText}</button>
<div style="clear:both"></div>
Expand Down

0 comments on commit 76d92bf

Please sign in to comment.