Revert "Updated Orbit js to latest version"

This reverts commit b18e61a6c0.
This commit is contained in:
saurabhbhatia 2013-10-02 12:32:45 +08:00
parent 433c8d5da6
commit 31b55a0635
1 changed files with 24 additions and 5 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'),
@ -484,17 +502,15 @@ function openSlide() {
$(window).width() > 1440 ? $pageslideW = 1024 : $pageslideW = 954; $(window).width() > 1440 ? $pageslideW = 1024 : $pageslideW = 954;
$(window).resize(function() { $(window).resize(function() {
$(this).width() > 1440 ? $pageslideW = 1024 : $pageslideW = 954; $(this).width() > 1440 ? $pageslideW = 1024 : $pageslideW = 954;
}); })
if($('.item-groups').length) { if($('.item-groups').length) {
$os = $openSlide.not('.view-page'); $os = $openSlide.not('.view-page');
$vp = $openSlide.filter('.view-page.open-slide'); $vp = $openSlide.filter('.view-page.open-slide');
$os.pageslide({ W: 324 }); $os.pageslide({ W: 624 });
$vp.pageslide({ W: $pageslideW, iframe: true }); $vp.pageslide({ W: $pageslideW, iframe: true });
} else { } else {
$openSlide.pageslide(); $openSlide.pageslide();
}; };
$('.bottomnav .open-slide').on('click', function() { $('.bottomnav .open-slide').on('click', function() {
$('.table tr').removeClass('active'); $('.table tr').removeClass('active');
$('.filter-item').removeClass('active') $('.filter-item').removeClass('active')
@ -532,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');
@ -558,7 +578,6 @@ $(function() {
if(!/MSIE 8.0/g.test(navigator.userAgent)){ if(!/MSIE 8.0/g.test(navigator.userAgent)){
document.getElementById('sidebar').addEventListener('touchmove', function (e) { e.preventDefault(); }, false); document.getElementById('sidebar').addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
} }
demo_fu1();
} }
if($('#pageslide').length) { if($('#pageslide').length) {
openSlide(); openSlide();