Put back js that was deleted by mistake

This commit is contained in:
chris 2013-09-06 16:28:05 +08:00 committed by saurabhbhatia
parent 06203d27b9
commit 3328a41b55
1 changed files with 22 additions and 0 deletions

View File

@ -476,6 +476,24 @@ if($.support.touch) {
}(window.jQuery);
var ini = function() {
api = this
api.modal = function(e) {
$('#dialog a.delete-item').attr("href", e);
$('#dialog').modal('show');
}
}
var ini = function() {
api = this
api.modal = function(e) {
$('#dialog a.delete-item').attr("href", e);
$('#dialog').modal('show');
}
}
// Open Slide
function openSlide() {
var $openSlide = $('.open-slide'),
@ -530,6 +548,10 @@ function changeStatusHidden() {
// Document Ready
$(function() {
new ini();
$('.delete').on('click', function() {
api.modal($(this).attr('rel'));
})
initialState();
$('#login').on('shown', function () {
$(document.body).addClass('modalBlur');