From 31b55a06355f1aebed33171f766706c8bbef717e Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Wed, 2 Oct 2013 12:32:45 +0800 Subject: [PATCH] Revert "Updated Orbit js to latest version" This reverts commit b18e61a6c0fe2261ded91548ab4a88d3752cea24. --- .../javascripts/basic/orbit_js_1.0.1.js | 29 +++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) 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 83962030c..49b8a1417 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'), @@ -484,17 +502,15 @@ function openSlide() { $(window).width() > 1440 ? $pageslideW = 1024 : $pageslideW = 954; $(window).resize(function() { $(this).width() > 1440 ? $pageslideW = 1024 : $pageslideW = 954; - }); - + }) if($('.item-groups').length) { $os = $openSlide.not('.view-page'); $vp = $openSlide.filter('.view-page.open-slide'); - $os.pageslide({ W: 324 }); + $os.pageslide({ W: 624 }); $vp.pageslide({ W: $pageslideW, iframe: true }); } else { $openSlide.pageslide(); }; - $('.bottomnav .open-slide').on('click', function() { $('.table tr').removeClass('active'); $('.filter-item').removeClass('active') @@ -532,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'); @@ -558,7 +578,6 @@ $(function() { if(!/MSIE 8.0/g.test(navigator.userAgent)){ document.getElementById('sidebar').addEventListener('touchmove', function (e) { e.preventDefault(); }, false); } - demo_fu1(); } if($('#pageslide').length) { openSlide();