diff --git a/app/assets/javascripts/basic/orbit_js_1.0.1.js b/app/assets/javascripts/basic/orbit_js_1.0.1.js index d529babc..35c8b13c 100644 --- a/app/assets/javascripts/basic/orbit_js_1.0.1.js +++ b/app/assets/javascripts/basic/orbit_js_1.0.1.js @@ -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');