Commit f80cbaf7 by Kálmán Viktor

network: nicer record choose text

parent e88e4913
...@@ -272,9 +272,12 @@ $(function() { ...@@ -272,9 +272,12 @@ $(function() {
$('div[id^="div_id_"]').hide(); $('div[id^="div_id_"]').hide();
// hide the save button // hide the save button
$('#submit-id-submit').hide(); $('#submit-id-submit').hide();
$('#div_id_type .controls').append( //
$('#div_id_type .controls')
.addClass('input-group')
.append(
//' <a id="type_next" onclick="type_next()" class="btn btn-info">Next</a>' //' <a id="type_next" onclick="type_next()" class="btn btn-info">Next</a>'
'<span id="type_next" class="help-block"><strong>' + '<span id="type_next" class="input-group-addon"><strong>' +
gettext('Specify a type!') + gettext('Specify a type!') +
'</strong></span>' '</strong></span>'
); );
...@@ -285,6 +288,7 @@ $(function() { ...@@ -285,6 +288,7 @@ $(function() {
// if the user choose a type // if the user choose a type
function type_next() { function type_next() {
if($('#div_id_type :selected').val()) { if($('#div_id_type :selected').val()) {
$('#div_id_type .controls').removeClass('input-group');
$('#type_next').remove(); $('#type_next').remove();
$('div[id^="div_id_"]').fadeIn(); $('div[id^="div_id_"]').fadeIn();
$('#submit-id-submit').fadeIn(); $('#submit-id-submit').fadeIn();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment