|
@@ -40,6 +40,7 @@ $(document).ready(function() {
|
|
var field02 = $("#panel_02");
|
|
var field02 = $("#panel_02");
|
|
var field07 = $("#panel_07");
|
|
var field07 = $("#panel_07");
|
|
var field08 = $("#panel_08");
|
|
var field08 = $("#panel_08");
|
|
|
|
+ var field10 = $("#panel_10");
|
|
|
|
|
|
var isRearranged = false;
|
|
var isRearranged = false;
|
|
|
|
|
|
@@ -54,6 +55,7 @@ $(document).ready(function() {
|
|
field02.detach();
|
|
field02.detach();
|
|
field07.detach();
|
|
field07.detach();
|
|
field08.detach();
|
|
field08.detach();
|
|
|
|
+ field10.detach();
|
|
|
|
|
|
groupOneLayout.append(field01);
|
|
groupOneLayout.append(field01);
|
|
groupOneLayout.append(field02);
|
|
groupOneLayout.append(field02);
|
|
@@ -64,6 +66,7 @@ $(document).ready(function() {
|
|
groupOneLayout.append(field07);
|
|
groupOneLayout.append(field07);
|
|
groupOneLayout.append(field08);
|
|
groupOneLayout.append(field08);
|
|
groupOneLayout.append(field09);
|
|
groupOneLayout.append(field09);
|
|
|
|
+ groupOneLayout.append(field10);
|
|
}
|
|
}
|
|
|
|
|
|
// Rearrange the fields according to their original order
|
|
// Rearrange the fields according to their original order
|
|
@@ -77,6 +80,7 @@ $(document).ready(function() {
|
|
field07.detach();
|
|
field07.detach();
|
|
field08.detach();
|
|
field08.detach();
|
|
field09.detach();
|
|
field09.detach();
|
|
|
|
+ field10.detach();
|
|
|
|
|
|
groupOneLayout.append(field01);
|
|
groupOneLayout.append(field01);
|
|
groupOneLayout.append(field03);
|
|
groupOneLayout.append(field03);
|
|
@@ -87,6 +91,7 @@ $(document).ready(function() {
|
|
groupOneLayout.append(field02);
|
|
groupOneLayout.append(field02);
|
|
groupTwoLayout.append(field07);
|
|
groupTwoLayout.append(field07);
|
|
groupTwoLayout.append(field08);
|
|
groupTwoLayout.append(field08);
|
|
|
|
+ groupTwoLayout.append(field10);
|
|
}
|
|
}
|
|
|
|
|
|
// If the web page is opened on a mobile
|
|
// If the web page is opened on a mobile
|
|
@@ -150,7 +155,7 @@ $(document).ready(function() {
|
|
showFixedJumpedTo();
|
|
showFixedJumpedTo();
|
|
|
|
|
|
// Update scroll position
|
|
// Update scroll position
|
|
- $(window).scrollTop($("div.saved-tags").offset().top - 300);
|
|
|
|
|
|
+ $(window).scrollTop($("div.saved-tags").offset().top - 360);
|
|
hasScrolledDown = true;
|
|
hasScrolledDown = true;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1141,13 +1146,13 @@ $(document).ready(function() {
|
|
|
|
|
|
itemListHTML +=
|
|
itemListHTML +=
|
|
// '<li class="added_item"><span class="handle glyphicon glyphicon-move"></span><textarea maxlength="100" class="expandable" rows="3" data-limit-rows="true" data-autoresize name="' + key + '">' + itm + '</textarea><span class="remove glyphicon glyphicon-remove-circle"></span></li>';
|
|
// '<li class="added_item"><span class="handle glyphicon glyphicon-move"></span><textarea maxlength="100" class="expandable" rows="3" data-limit-rows="true" data-autoresize name="' + key + '">' + itm + '</textarea><span class="remove glyphicon glyphicon-remove-circle"></span></li>';
|
|
- '<li class="added_item"><div class="expandable" name="' + key + '">' + itm + '</div><span class="handle glyphicon glyphicon-list"></span><span class="move-up glyphicon glyphicon-chevron-up"></span><span class="move-down glyphicon glyphicon-chevron-down"></span><span class="remove glyphicon glyphicon-remove-circle"></span></li>';
|
|
|
|
|
|
+ '<li class="added_item"><div class="expandable" name="' + key + '">' + itm + '</div><br /><span class="handle glyphicon glyphicon-list"></span><span class="move-up glyphicon glyphicon-chevron-up"></span><span class="move-down glyphicon glyphicon-chevron-down"></span><span class="remove glyphicon glyphicon-remove-circle"></span></li>';
|
|
});
|
|
});
|
|
}
|
|
}
|
|
else { // a single value string
|
|
else { // a single value string
|
|
itemListHTML +=
|
|
itemListHTML +=
|
|
// '<li class="added_item"><span class="handle glyphicon glyphicon-move"></span><textarea maxlength="100" class="expandable" rows="3" data-limit-rows="true" data-autoresize name="' + key + '">' + value + '</textarea><span class="remove glyphicon glyphicon-remove-circle"></span></li>';
|
|
// '<li class="added_item"><span class="handle glyphicon glyphicon-move"></span><textarea maxlength="100" class="expandable" rows="3" data-limit-rows="true" data-autoresize name="' + key + '">' + value + '</textarea><span class="remove glyphicon glyphicon-remove-circle"></span></li>';
|
|
- '<li class="added_item"><div class="expandable" name="' + key + '">' + value + '</div><span class="handle glyphicon glyphicon-list"></span><span class="move-up glyphicon glyphicon-chevron-up"></span><span class="move-down glyphicon glyphicon-chevron-down"></span><span class="remove glyphicon glyphicon-remove-circle"></span></li>';
|
|
|
|
|
|
+ '<li class="added_item"><div class="expandable" name="' + key + '">' + value + '</div><br /><span class="handle glyphicon glyphicon-list"></span><span class="move-up glyphicon glyphicon-chevron-up"></span><span class="move-down glyphicon glyphicon-chevron-down"></span><span class="remove glyphicon glyphicon-remove-circle"></span></li>';
|
|
}
|
|
}
|
|
/* Append the created list items/textatreas to the right field based on the "key"*/
|
|
/* Append the created list items/textatreas to the right field based on the "key"*/
|
|
/* the str.substr(start,length)
|
|
/* the str.substr(start,length)
|
|
@@ -1293,7 +1298,7 @@ $(document).ready(function() {
|
|
// The height of the newly added item = the height of the add new idea textarea
|
|
// The height of the newly added item = the height of the add new idea textarea
|
|
$(this).closest('.card').find('ul.item_list').append(
|
|
$(this).closest('.card').find('ul.item_list').append(
|
|
// '<li class="added_item"><span class="handle glyphicon glyphicon-move"></span><textarea maxlength="100" class="expandable" rows="3" data-limit-rows="true" data-autoresize name="' + field_attr + '">' + new_item + '</textarea><span class="remove glyphicon glyphicon-remove-circle"></span></li>'
|
|
// '<li class="added_item"><span class="handle glyphicon glyphicon-move"></span><textarea maxlength="100" class="expandable" rows="3" data-limit-rows="true" data-autoresize name="' + field_attr + '">' + new_item + '</textarea><span class="remove glyphicon glyphicon-remove-circle"></span></li>'
|
|
- '<li class="added_item"><div class="expandable" name="' + field_attr + '">' + new_item + '</div><span class="handle glyphicon glyphicon-list"></span><span class="move-up glyphicon glyphicon-chevron-up"></span><span class="move-down glyphicon glyphicon-chevron-down"></span><span class="remove glyphicon glyphicon-remove-circle"></span></li>'
|
|
|
|
|
|
+ '<li class="added_item"><div class="expandable" name="' + field_attr + '">' + new_item + '</div><br /><span class="handle glyphicon glyphicon-list"></span><span class="move-up glyphicon glyphicon-chevron-up"></span><span class="move-down glyphicon glyphicon-chevron-down"></span><span class="remove glyphicon glyphicon-remove-circle"></span></li>'
|
|
);
|
|
);
|
|
|
|
|
|
// Fix the heights only after a new item is added
|
|
// Fix the heights only after a new item is added
|
|
@@ -1357,7 +1362,7 @@ $(document).ready(function() {
|
|
// The height of the newly added item = the height of the add new idea textarea
|
|
// The height of the newly added item = the height of the add new idea textarea
|
|
$(this).closest('.card').find('ul.item_list').append(
|
|
$(this).closest('.card').find('ul.item_list').append(
|
|
// '<li class="added_item"><span class="handle glyphicon glyphicon-move"></span><textarea maxlength="100" class="expandable" rows="3" data-limit-rows="true" data-autoresize name="' + field_attr + '">' + new_item + '</textarea><span class="remove glyphicon glyphicon-remove-circle"></span></li>');
|
|
// '<li class="added_item"><span class="handle glyphicon glyphicon-move"></span><textarea maxlength="100" class="expandable" rows="3" data-limit-rows="true" data-autoresize name="' + field_attr + '">' + new_item + '</textarea><span class="remove glyphicon glyphicon-remove-circle"></span></li>');
|
|
- '<li class="added_item"><div class="expandable" name="' + field_attr + '">' + new_item + '</div><span class="handle glyphicon glyphicon-list"></span><span class="move-up glyphicon glyphicon-chevron-up"></span><span class="move-down glyphicon glyphicon-chevron-down"></span><span class="remove glyphicon glyphicon-remove-circle"></span></li>'
|
|
|
|
|
|
+ '<li class="added_item"><div class="expandable" name="' + field_attr + '">' + new_item + '</div><br /><span class="handle glyphicon glyphicon-list"></span><span class="move-up glyphicon glyphicon-chevron-up"></span><span class="move-down glyphicon glyphicon-chevron-down"></span><span class="remove glyphicon glyphicon-remove-circle"></span></li>'
|
|
);
|
|
);
|
|
// Fix the heights only after a new item is added
|
|
// Fix the heights only after a new item is added
|
|
// fixHeights();
|
|
// fixHeights();
|
|
@@ -1405,7 +1410,7 @@ $(document).ready(function() {
|
|
var linkText;
|
|
var linkText;
|
|
|
|
|
|
// Remove the link to the current category, as the idea cannot be moved to its own category where it already is
|
|
// Remove the link to the current category, as the idea cannot be moved to its own category where it already is
|
|
- function removeLinkToOriginCategory(text) {
|
|
|
|
|
|
+ function removeLinkToOriginCategory(text) {
|
|
// If the number of the category is between 10-99
|
|
// If the number of the category is between 10-99
|
|
if(text.substring(6, 7) != "0") {
|
|
if(text.substring(6, 7) != "0") {
|
|
categoryOrigin = text.substring(6, 9) - 1;
|
|
categoryOrigin = text.substring(6, 9) - 1;
|