added element scope to query for logo preview, closes #624
parent
08d62473be
commit
d35f1fa014
|
@ -542,7 +542,7 @@ var ClientFormView = Backbone.View.extend({
|
||||||
previewLogo:function() {
|
previewLogo:function() {
|
||||||
if ($('#logoUri input', this.el).val()) {
|
if ($('#logoUri input', this.el).val()) {
|
||||||
$('#logoPreview', this.el).empty();
|
$('#logoPreview', this.el).empty();
|
||||||
$('#logoPreview', this.el).attr('src', $('#logoUri input').val());
|
$('#logoPreview', this.el).attr('src', $('#logoUri input', this.el).val());
|
||||||
} else {
|
} else {
|
||||||
//$('#logoBlock', this.el).hide();
|
//$('#logoBlock', this.el).hide();
|
||||||
$('#logoPreview', this.el).attr('src', 'resources/images/logo_placeholder.gif');
|
$('#logoPreview', this.el).attr('src', 'resources/images/logo_placeholder.gif');
|
||||||
|
|
|
@ -235,7 +235,7 @@ var DynRegEditView = Backbone.View.extend({
|
||||||
previewLogo:function() {
|
previewLogo:function() {
|
||||||
if ($('#logoUri input', this.el).val()) {
|
if ($('#logoUri input', this.el).val()) {
|
||||||
$('#logoPreview', this.el).empty();
|
$('#logoPreview', this.el).empty();
|
||||||
$('#logoPreview', this.el).attr('src', $('#logoUri input').val());
|
$('#logoPreview', this.el).attr('src', $('#logoUri input', this.el).val());
|
||||||
} else {
|
} else {
|
||||||
//$('#logoBlock', this.el).hide();
|
//$('#logoBlock', this.el).hide();
|
||||||
$('#logoPreview', this.el).attr('src', 'resources/images/logo_placeholder.gif');
|
$('#logoPreview', this.el).attr('src', 'resources/images/logo_placeholder.gif');
|
||||||
|
|
|
@ -210,7 +210,7 @@ var ResRegEditView = Backbone.View.extend({
|
||||||
previewLogo:function() {
|
previewLogo:function() {
|
||||||
if ($('#logoUri input', this.el).val()) {
|
if ($('#logoUri input', this.el).val()) {
|
||||||
$('#logoPreview', this.el).empty();
|
$('#logoPreview', this.el).empty();
|
||||||
$('#logoPreview', this.el).attr('src', $('#logoUri input').val());
|
$('#logoPreview', this.el).attr('src', $('#logoUri input', this.el).val());
|
||||||
} else {
|
} else {
|
||||||
//$('#logoBlock', this.el).hide();
|
//$('#logoBlock', this.el).hide();
|
||||||
$('#logoPreview', this.el).attr('src', 'resources/images/logo_placeholder.gif');
|
$('#logoPreview', this.el).attr('src', 'resources/images/logo_placeholder.gif');
|
||||||
|
|
Loading…
Reference in New Issue