Lines 25-37
Link Here
|
25 |
self.$elm = $(elm); |
25 |
self.$elm = $(elm); |
26 |
self.fields = fields; |
26 |
self.fields = fields; |
27 |
|
27 |
|
28 |
var UNDO_STRING = _("Undo"); |
|
|
29 |
var GOOGLE_BOOKS_STRING = _("Search Google Books"); |
30 |
|
31 |
/* decorate element as autofiller */ |
28 |
/* decorate element as autofiller */ |
32 |
var $inputgroup = $('<div class="input-prepend">'); |
29 |
var $inputgroup = $('<div class="input-prepend">'); |
33 |
self.$undo = $('<span class="add-on" style="display:none;cursor:pointer;">' + UNDO_STRING + '</span>'); |
30 |
self.$undo = $('<span class="add-on" style="display:none;cursor:pointer;">' + MSG_UNDO_AUTOFILL_SUGGESTION + '</span>'); |
34 |
self.$fillbtn = $('<span class="add-on" style="cursor:pointer;">' + GOOGLE_BOOKS_STRING + '</span>'); |
31 |
self.$fillbtn = $('<span class="add-on" style="cursor:pointer;">' + MSG_SEARCH_GOOGLE_BOOKS + '</span>'); |
35 |
self.$error = $('<span class="add-on" style="display:none;"></span>'); |
32 |
self.$error = $('<span class="add-on" style="display:none;"></span>'); |
36 |
self.$elm.wrap($inputgroup); |
33 |
self.$elm.wrap($inputgroup); |
37 |
self.$elm.after(self.$error); |
34 |
self.$elm.after(self.$error); |
38 |
- |
|
|