|
|
@ -95,7 +95,7 @@ var DynRegRootView = Backbone.View.extend({ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$('#loadingbox').sheet('show'); |
|
|
|
$('#loadingbox').sheet('show'); |
|
|
|
$('#loading').html('<span class="label" id="loading-scopes">Scopes</span> '); |
|
|
|
$('#loading').html('<span class="label" id="loading-scopes">' + $.t('common.scopes') + '</span> '); |
|
|
|
|
|
|
|
|
|
|
|
$.when(this.options.systemScopeList.fetchIfNeeded({success:function(e) {$('#loading-scopes').addClass('label-success');}})) |
|
|
|
$.when(this.options.systemScopeList.fetchIfNeeded({success:function(e) {$('#loading-scopes').addClass('label-success');}})) |
|
|
|
.done(function() { |
|
|
|
.done(function() { |
|
|
@ -144,12 +144,12 @@ var DynRegRootView = Backbone.View.extend({ |
|
|
|
view.load(function() { |
|
|
|
view.load(function() { |
|
|
|
$('#content').html(view.render().el); |
|
|
|
$('#content').html(view.render().el); |
|
|
|
view.delegateEvents(); |
|
|
|
view.delegateEvents(); |
|
|
|
setPageTitle("Edit a Dynamically Registered Client"); |
|
|
|
setPageTitle($.t('dynreg.edit-dynamically-registered')); |
|
|
|
app.navigate('dev/dynreg/edit', {trigger: true});
|
|
|
|
app.navigate('dev/dynreg/edit', {trigger: true});
|
|
|
|
self.remove(); |
|
|
|
self.remove(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, error: function() { |
|
|
|
}, error: function() { |
|
|
|
$('#modalAlert div.modal-body').html("Invalid client or registration access token."); |
|
|
|
$('#modalAlert div.modal-body').html($.t('dynreg.invalid-access-token')); |
|
|
|
|
|
|
|
|
|
|
|
$("#modalAlert").modal({ // wire up the actual modal functionality and show the dialog
|
|
|
|
$("#modalAlert").modal({ // wire up the actual modal functionality and show the dialog
|
|
|
|
"backdrop" : "static", |
|
|
|
"backdrop" : "static", |
|
|
@ -188,7 +188,7 @@ var DynRegEditView = Backbone.View.extend({ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$('#loadingbox').sheet('show'); |
|
|
|
$('#loadingbox').sheet('show'); |
|
|
|
$('#loading').html('<span class="label" id="loading-scopes">Scopes</span> '); |
|
|
|
$('#loading').html('<span class="label" id="loading-scopes">' + $.t('common.scopes') + '</span> '); |
|
|
|
|
|
|
|
|
|
|
|
$.when(this.options.systemScopeList.fetchIfNeeded({success:function(e) {$('#loading-scopes').addClass('label-success');}})) |
|
|
|
$.when(this.options.systemScopeList.fetchIfNeeded({success:function(e) {$('#loading-scopes').addClass('label-success');}})) |
|
|
|
.done(function() { |
|
|
|
.done(function() { |
|
|
@ -213,7 +213,7 @@ var DynRegEditView = Backbone.View.extend({ |
|
|
|
deleteClient:function (e) { |
|
|
|
deleteClient:function (e) { |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
|
|
|
|
|
|
|
|
if (confirm("Are you sure sure you would like to delete this client?")) { |
|
|
|
if (confirm($.t('client.client-table.confirm'))) { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
|
|
|
|
|
|
|
|
this.model.destroy({ |
|
|
|
this.model.destroy({ |
|
|
|