Only run the js for progress/plan edit on the right pages
Change-Id: I612982f1f2f13fae52b036a8ce61a76040eb2c5f
This commit is contained in:
parent
7008d86283
commit
fa856179ce
@ -4,7 +4,7 @@ tuskar.deployment_progress = (function () {
|
|||||||
var module = {};
|
var module = {};
|
||||||
|
|
||||||
module.init = function () {
|
module.init = function () {
|
||||||
if (!$('div.deployment-box div.progress')) { return; }
|
if (!$('div.deployment-box div.progress').length) { return; }
|
||||||
module.interval = setInterval(module.check_progress, 30000);
|
module.interval = setInterval(module.check_progress, 30000);
|
||||||
module.events_template = Hogan.compile($('#events-template').html() || '');
|
module.events_template = Hogan.compile($('#events-template').html() || '');
|
||||||
module.roles_template = Hogan.compile($('#roles-template').html() || '');
|
module.roles_template = Hogan.compile($('#roles-template').html() || '');
|
||||||
|
@ -6,10 +6,8 @@ tuskar.edit_plan = (function () {
|
|||||||
module.debounce_timer = null;
|
module.debounce_timer = null;
|
||||||
|
|
||||||
module.init = function () {
|
module.init = function () {
|
||||||
|
if (!$('form.deployment-roles-form').length) { return; }
|
||||||
// Attach event listeners and hide the submit button.
|
// Attach event listeners and hide the submit button.
|
||||||
if (!$('form.deployment-roles-form')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$('form.deployment-roles-form input.number-picker'
|
$('form.deployment-roles-form input.number-picker'
|
||||||
).change(module.on_change);
|
).change(module.on_change);
|
||||||
$('form.deployment-roles-form [type=submit]').hide();
|
$('form.deployment-roles-form [type=submit]').hide();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user