forked from External/greenlight
GRN-69: Fixed javascript bug related to room validation (#388)
* Fixed javascript bug related to room validation * More javascript bugs * Removed room name length error * Fixed issue with room post url
This commit is contained in:
committed by
Jesus Federico
parent
37af17fae1
commit
ef8fc2c0e4
@ -13,3 +13,27 @@
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License along
|
||||
// with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Handle changing of settings tabs.
|
||||
$(document).on('turbolinks:load', function(){
|
||||
var controller = $("body").data('controller');
|
||||
var action = $("body").data('action');
|
||||
|
||||
|
||||
// Only run on the main page.
|
||||
if (controller == "main" && action == "index"){
|
||||
var cycleImages = function(){
|
||||
var images = $('.img-cycle img');
|
||||
var now = images.filter(':visible');
|
||||
var next = now.next().length ? now.next() : images.first();
|
||||
var speed = 1500;
|
||||
|
||||
now.fadeOut(speed);
|
||||
next.fadeIn(speed);
|
||||
}
|
||||
|
||||
$(function() {
|
||||
setInterval(cycleImages, 5000);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -55,7 +55,10 @@ $(document).on('turbolinks:load', function(){
|
||||
// Display and update all fields related to creating a room in the createRoomModal
|
||||
$("#create-room").click(function(){
|
||||
$("#create-room-name").val("")
|
||||
$("#createRoomModal form").attr("action", "/")
|
||||
|
||||
var relative_url_root = window.location.pathname.split("/")[1];
|
||||
|
||||
$("#createRoomModal form").attr("action", "/" + relative_url_root)
|
||||
updateDropdown($(".dropdown-item[value='default']"))
|
||||
$("#room_mute_on_join").prop("checked", false)
|
||||
|
||||
|
Reference in New Issue
Block a user