1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

feature #3748: Remove unnecessary Tips.setup() calls

This commit is contained in:
Daniel Molina 2015-07-15 13:13:01 +02:00
parent 8a6bc86fb1
commit 8c493d033e
12 changed files with 31 additions and 43 deletions

View File

@ -71,7 +71,6 @@ define(function(require) {
function _setup(context) {
var that = this;
Tips.setup(context);
CustomTagsTable.setup(context);

View File

@ -78,7 +78,6 @@ define(function(require) {
}
function _setup(context) {
Tips.setup(context);
context.on("change", "#LOGO", function() {
$("#template_create_logo", context).show();

View File

@ -31,8 +31,6 @@ define(function(require) {
}
function _setup(context) {
Tips.setup(context);
// Define the cpu slider
var cpu_input = $("#CPU", context);
var cpu_slider = $("#cpu_slider", context)

View File

@ -480,38 +480,38 @@ define(function(require) {
var providerSection = $('#' + htmlId + 'Tab', context);
providerSection.on("change", "input.hybridRadio", function() {
$(".hybrid_inputs", providerSection).html("");
$(".hybrid_inputs", providerSection).html("");
var required_str = "";
var not_required_str = "";
var required_str = "";
var not_required_str = "";
$.each(HYBRID_INPUTS[this.value], function(index, obj) {
if (obj.required) {
required_str += '<div class="large-6 columns">' +
'<label>' +
obj.label +
Tips.html(obj.tooltip) +
'</label>' +
'<input wizard_field="' + obj.name + '" type="text" id="' + obj.name + '">' +
'</div>'
} else {
not_required_str += '<div class="large-6 columns">' +
'<label>' +
obj.label +
Tips.html(obj.tooltip) +
'</label>' +
'<input wizard_field="' + obj.name + '" type="text" id="' + obj.name + '">' +
'</div>'
}
});
$.each(HYBRID_INPUTS[this.value], function(index, obj) {
if (obj.required) {
required_str += '<div class="large-6 columns">' +
'<label>' +
obj.label + ' ' +
Tips.html(obj.tooltip) +
'</label>' +
'<input wizard_field="' + obj.name + '" type="text" id="' + obj.name + '">' +
'</div>'
} else {
not_required_str += '<div class="large-6 columns">' +
'<label>' +
obj.label + ' ' +
Tips.html(obj.tooltip) +
'</label>' +
'<input wizard_field="' + obj.name + '" type="text" id="' + obj.name + '">' +
'</div>'
}
});
$(".hybrid_inputs", providerSection).append(
required_str +
'<br><hr><br>' +
not_required_str)
$(".hybrid_inputs", providerSection).append(
required_str +
'<br><hr><br>' +
not_required_str);
Tips.setup($(".hybrid_inputs", providerSection));
})
providerSection.foundation('tooltip', 'reflow');
})
}
function _fillProviderTab(context, provider, providerType, clickButton) {

View File

@ -56,8 +56,6 @@ define(function(require) {
}
function _setup(context) {
Tips.setup(context);
$("input[name='graphics_type']", context).change(function() {
$("#TYPE", context).val($(this).attr("value"))
$("#LISTEN", context).val("0.0.0.0")

View File

@ -70,7 +70,6 @@ define(function(require) {
that.numberOfNics = 0;
that.nicTabObjects = {};
Tips.setup(context);
context.foundation('reflow', 'tab');
// close icon: removing the tab on click

View File

@ -65,7 +65,7 @@ define(function(require) {
function _setup(context) {
var that = this;
Tips.setup(context);
context.foundation('tooltip', 'reflow');
that.vnetsTable.initialize({
'selectOptions': {
'select_callback': function(aData, options) {

View File

@ -170,7 +170,6 @@ define(function(require) {
function _setup(context) {
var that = this;
Tips.setup(context);
context.foundation('reflow', 'tab');
var kernelDSContext = $(".kernel_ds", context);

View File

@ -59,8 +59,6 @@ define(function(require) {
}
function _setup(context) {
Tips.setup(context);
CustomTagsTable.setup(context);
context.on("change", "#raw_type", function() {

View File

@ -73,7 +73,6 @@ define(function(require) {
function _setup(context) {
var that = this;
Tips.setup(context);
context.foundation('reflow', 'tab');
context.on("change", "input[name='req_select']", function() {

View File

@ -70,8 +70,7 @@ define(function(require) {
that.numberOfDisks = 0;
that.diskTabObjects = {};
Tips.setup(context);
context.foundation('reflow', 'tab');
context.foundation('tab', 'reflow');
// close icon: removing the tab on click
context.on("click", "i.remove-tab", function() {

View File

@ -55,7 +55,7 @@ define(function(require) {
function _setup(context) {
var that = this;
Tips.setup(context);
context.foundation('tooltip', 'reflow');
that.imageTable.initialize({
'selectOptions': {
'select_callback': function(aData, options) {