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