Updating js plugins
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
$(function() {
|
||||
$('table').addClass('table table-bordered table-striped');
|
||||
});
|
||||
@@ -0,0 +1,54 @@
|
||||
$(function() {
|
||||
|
||||
$('#menu').metisMenu();
|
||||
|
||||
$("#ajaxButton").one('click', function() {
|
||||
var $this = $(this);
|
||||
$.ajax({
|
||||
url: "demo-ajax.html",
|
||||
success: function(result) {
|
||||
|
||||
$('#menu').metisMenu('dispose');
|
||||
$("#menu").append(result);
|
||||
|
||||
new Noty({
|
||||
text: 'ajax menu appended to menu',
|
||||
layout: 'topRight',
|
||||
type: 'success',
|
||||
theme: 'relax',
|
||||
progressBar: true,
|
||||
timeout: 2000
|
||||
}).show();
|
||||
|
||||
$('#menu').metisMenu();
|
||||
$this.attr('disabled', 'disabled');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#menu2').metisMenu();
|
||||
|
||||
$("[data-url]").each(function(){
|
||||
$(this).one('click', function(event){
|
||||
event.preventDefault();
|
||||
var $this = $(this);
|
||||
var url = $this.attr('data-url');
|
||||
console.log(url);
|
||||
|
||||
$.ajax({
|
||||
url: url,
|
||||
success: function(result) {
|
||||
|
||||
$('#menu2').metisMenu('dispose');
|
||||
$this.parent('li').append(result);
|
||||
|
||||
$('#menu2').metisMenu();
|
||||
|
||||
$this.click();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
$(function () {
|
||||
|
||||
$('#menu').metisMenu();
|
||||
|
||||
});
|
||||
@@ -0,0 +1,11 @@
|
||||
$(function() {
|
||||
|
||||
$('.metismenu').metisMenu({
|
||||
toggle: false,
|
||||
triggerElement: '.card-header',
|
||||
parentTrigger: '.card',
|
||||
subMenu: '.card-body'
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
$(function() {
|
||||
|
||||
$('#menu').metisMenu();
|
||||
|
||||
$('#stopMm').on('click', function(event) {
|
||||
$('#menu').metisMenu('dispose');
|
||||
new Noty({
|
||||
text: 'metisMenu stopped',
|
||||
layout: 'topRight',
|
||||
type: 'error',
|
||||
theme: 'relax',
|
||||
progressBar: true,
|
||||
timeout: 2000
|
||||
}).show();
|
||||
});
|
||||
|
||||
$('#startMm').on('click', function(event) {
|
||||
$('#menu').metisMenu();
|
||||
new Noty({
|
||||
text: 'metisMenu restarted',
|
||||
layout: 'topRight',
|
||||
type: 'success',
|
||||
theme: 'relax',
|
||||
progressBar: true,
|
||||
timeout: 2000
|
||||
}).show();
|
||||
});
|
||||
|
||||
$('#menu1').metisMenu();
|
||||
$('#deleteElem').one('click', function(event) {
|
||||
$(this).removeClass('btn-danger').addClass('btn-success').html('Menu 1 removed').attr('disabled', 'disabled');
|
||||
$('#menu1').metisMenu('dispose');
|
||||
|
||||
$('#menu1 #removable').remove();
|
||||
new Noty({
|
||||
text: 'Menu 1 removed',
|
||||
layout: 'topRight',
|
||||
type: 'information',
|
||||
theme: 'relax',
|
||||
progressBar: true,
|
||||
timeout: 2000
|
||||
}).show();
|
||||
|
||||
$('#menu1').metisMenu();
|
||||
});
|
||||
|
||||
});
|
||||
@@ -0,0 +1,38 @@
|
||||
$(function() {
|
||||
|
||||
$('#menu').metisMenu().on('show.metisMenu', function(event) {
|
||||
new Noty({
|
||||
text: $(event.target).parent('li').children('a').html() + ' opening ...',
|
||||
layout: 'topRight',
|
||||
type: 'information',
|
||||
theme: 'relax',
|
||||
|
||||
timeout: 350
|
||||
}).show();
|
||||
}).on('shown.metisMenu', function(event) {
|
||||
new Noty({
|
||||
text: $(event.target).parent('li').children('a').html() + ' opened',
|
||||
layout: 'topRight',
|
||||
type: 'success',
|
||||
theme: 'relax',
|
||||
timeout: 350
|
||||
}).show();
|
||||
}).on('hide.metisMenu', function(event) {
|
||||
new Noty({
|
||||
text: $(event.target).parent('li').children('a').html() + ' collapsing ...',
|
||||
layout: 'topRight',
|
||||
type: 'warning',
|
||||
theme: 'relax',
|
||||
timeout: 350
|
||||
}).show();
|
||||
}).on('hidden.metisMenu', function(event) {
|
||||
new Noty({
|
||||
text: $(event.target).parent('li').children('a').html() + ' collapsed',
|
||||
layout: 'topRight',
|
||||
type: 'error',
|
||||
theme: 'relax',
|
||||
timeout: 350
|
||||
}).show();
|
||||
});
|
||||
|
||||
});
|
||||
@@ -0,0 +1,7 @@
|
||||
$(function() {
|
||||
$('#menu')
|
||||
.metisMenu()
|
||||
.on('shown.metisMenu', function(event) {
|
||||
Jump("#menu")
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
$(function() {
|
||||
|
||||
$('.faq-menu').metisMenu({
|
||||
toggle: false,
|
||||
triggerElement: '.faq-link',
|
||||
parentTrigger: '.faq-item',
|
||||
subMenu: '.faq-answer'
|
||||
});
|
||||
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
$(function () {
|
||||
$('.metisFolder').metisMenu({
|
||||
toggle: false
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,7 @@
|
||||
$(function() {
|
||||
|
||||
$('#menu1').metisMenu();
|
||||
|
||||
$('#menu2').metisMenu();
|
||||
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
$(function() {
|
||||
|
||||
$('#menu1').metisMenu();
|
||||
|
||||
});
|
||||
@@ -0,0 +1,11 @@
|
||||
$(function() {
|
||||
|
||||
$('#menu1').metisMenu();
|
||||
|
||||
$('#menu2').metisMenu({
|
||||
toggle: false
|
||||
});
|
||||
|
||||
$('#menu3').metisMenu();
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user