Skip to content

Commit

Permalink
placeholder "https://..." for url widget
Browse files Browse the repository at this point in the history
  • Loading branch information
bago committed May 16, 2022
1 parent 36599cd commit 9f97f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/widgets/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var widgetPlugin = {
html: function(propAccessor, onfocusbinding, parameters) {
return '<div class="ui-textbutton">' +
// <a class="ui-spinner-button ui-spinner-down ui-corner-br ui-button ui-widget ui-state-default ui-button-text-only" tabindex="-1" role="button"><span class="ui-button-text"><span class="ui-icon fa fa-fw caret-down">▼</span></span></a>
'<input class="ui-textbutton-input" size="7" type="url" pattern="(mailto:.+@.+|https?://.+\\..+|\\[.*\\].*)" value="nothing" data-bind="css: { withButton: typeof $root.linkDialog !== \'undefined\' }, validatedValue: ' + propAccessor + ', ' + onfocusbinding + '" />' +
'<input class="ui-textbutton-input" size="7" placeholder="https://..." type="url" pattern="(mailto:.+@.+|https?://.+\\..+|\\[.*\\].*)" value="nothing" data-bind="css: { withButton: typeof $root.linkDialog !== \'undefined\' }, validatedValue: ' + propAccessor + ', ' + onfocusbinding + '" />' +
'<a class="ui-textbutton-button" data-bind="visible: typeof $root.linkDialog !== \'undefined\', click: typeof $root.linkDialog !== \'undefined\' ? $root.linkDialog.bind($element.previousSibling) : false, button: { icons: { primary: \'fa fa-fw fa-ellipsis-h\' }, label: \'Opzioni\', text: false }">Opzioni</a>' +
'</div>';
}
Expand Down

0 comments on commit 9f97f37

Please sign in to comment.