diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/libtoaster.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index d48c7f787a..e4e4f6cf56 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js | |||
@@ -300,11 +300,11 @@ var libtoaster = (function () { | |||
300 | var alertMsg; | 300 | var alertMsg; |
301 | 301 | ||
302 | if (layerDepsList.length > 0 && add === true) { | 302 | if (layerDepsList.length > 0 && add === true) { |
303 | alertMsg = $("<span>You have added <strong>"+(layerDepsList.length+1)+"</strong> layers to your project: <a id=\"layer-affected-name\"></a> and its dependencies </span>"); | 303 | alertMsg = $("<span>You have added <strong>"+(layerDepsList.length+1)+"</strong> layers to your project: <a class=\"alert-link\" id=\"layer-affected-name\"></a> and its dependencies </span>"); |
304 | 304 | ||
305 | /* Build the layer deps list */ | 305 | /* Build the layer deps list */ |
306 | layerDepsList.map(function(layer, i){ | 306 | layerDepsList.map(function(layer, i){ |
307 | var link = $("<a></a>"); | 307 | var link = $("<a class=\"alert-link\"></a>"); |
308 | 308 | ||
309 | link.attr("href", layer.layerdetailurl); | 309 | link.attr("href", layer.layerdetailurl); |
310 | link.text(layer.name); | 310 | link.text(layer.name); |
@@ -316,9 +316,9 @@ var libtoaster = (function () { | |||
316 | alertMsg.append(link); | 316 | alertMsg.append(link); |
317 | }); | 317 | }); |
318 | } else if (layerDepsList.length === 0 && add === true) { | 318 | } else if (layerDepsList.length === 0 && add === true) { |
319 | alertMsg = $("<span>You have added <strong>1</strong> layer to your project: <a id=\"layer-affected-name\"></a></span></span>"); | 319 | alertMsg = $("<span>You have added <strong>1</strong> layer to your project: <a class=\"alert-link\" id=\"layer-affected-name\"></a></span></span>"); |
320 | } else if (add === false) { | 320 | } else if (add === false) { |
321 | alertMsg = $("<span>You have removed <strong>1</strong> layer from your project: <a id=\"layer-affected-name\"></a></span>"); | 321 | alertMsg = $("<span>You have removed <strong>1</strong> layer from your project: <a class=\"alert-link\" id=\"layer-affected-name\"></a></span>"); |
322 | } | 322 | } |
323 | 323 | ||
324 | alertMsg.children("#layer-affected-name").text(layer.name); | 324 | alertMsg.children("#layer-affected-name").text(layer.name); |
@@ -393,11 +393,11 @@ var libtoaster = (function () { | |||
393 | data.results[0].name === projectName) { | 393 | data.results[0].name === projectName) { |
394 | // This project name exists hence show the error and disable | 394 | // This project name exists hence show the error and disable |
395 | // the save button | 395 | // the save button |
396 | ctrlGrpValidateProjectName.addClass('control-group error'); | 396 | ctrlGrpValidateProjectName.addClass('has-error'); |
397 | hintError.show(); | 397 | hintError.show(); |
398 | enableOrDisableBtn.attr('disabled', 'disabled'); | 398 | enableOrDisableBtn.attr('disabled', 'disabled'); |
399 | } else { | 399 | } else { |
400 | ctrlGrpValidateProjectName.removeClass('control-group error'); | 400 | ctrlGrpValidateProjectName.removeClass('has-error'); |
401 | hintError.hide(); | 401 | hintError.hide(); |
402 | enableOrDisableBtn.removeAttr('disabled'); | 402 | enableOrDisableBtn.removeAttr('disabled'); |
403 | } | 403 | } |
@@ -557,14 +557,14 @@ $(document).ready(function() { | |||
557 | // show task type and outcome in task details pages | 557 | // show task type and outcome in task details pages |
558 | $(".task-info").tooltip({ container: 'body', html: true, delay: {show: 200}, placement: 'right' }); | 558 | $(".task-info").tooltip({ container: 'body', html: true, delay: {show: 200}, placement: 'right' }); |
559 | 559 | ||
560 | // initialise the tooltips for the icon-pencil icons | 560 | // initialise the tooltips for the edit icons |
561 | $(".icon-pencil").tooltip({ container: 'body', html: true, delay: {show: 400}, title: "Change" }); | 561 | $(".glyphicon-edit").tooltip({ container: 'body', html: true, delay: {show: 400}, title: "Change" }); |
562 | 562 | ||
563 | // initialise the tooltips for the download icons | 563 | // initialise the tooltips for the download icons |
564 | $(".icon-download-alt").tooltip({ container: 'body', html: true, delay: { show: 200 } }); | 564 | $(".icon-download-alt").tooltip({ container: 'body', html: true, delay: { show: 200 } }); |
565 | 565 | ||
566 | // initialise popover for debug information | 566 | // initialise popover for debug information |
567 | $(".icon-info-sign").popover( { placement: 'bottom', html: true, container: 'body' }); | 567 | $(".glyphicon-info-sign").popover( { placement: 'bottom', html: true, container: 'body' }); |
568 | 568 | ||
569 | // linking directly to tabs | 569 | // linking directly to tabs |
570 | $(function(){ | 570 | $(function(){ |