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); }(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 // Open Slide
function openSlide() { function openSlide() {
var $openSlide = $('.open-slide'), var $openSlide = $('.open-slide'),
@ -530,6 +548,10 @@ function changeStatusHidden() {
// Document Ready // Document Ready
$(function() { $(function() {
new ini();
$('.delete').on('click', function() {
api.modal($(this).attr('rel'));
})
initialState(); initialState();
$('#login').on('shown', function () { $('#login').on('shown', function () {
$(document.body).addClass('modalBlur'); $(document.body).addClass('modalBlur');