Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.2.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #31  
Old 08-29-2011, 07:06 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 97,412
SilverDragonTears is on a distinguished road
Default

yea, because when someone has a lot it's hard to see what you want to drag where
__________________

Check out SilvaTales
Reply With Quote
  #32  
Old 08-30-2011, 09:22 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 37,863
fadillzzz is an unknown quantity at this point
Default

I'm not sure. The documentation doesn't explain any theming for the "sortable" interactions.
But I think you can add '.ui-sortable-placeholder' to your stylesheet and give it some properties to style it to your liking.
Reply With Quote
  #33  
Old 08-30-2011, 01:40 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 97,412
SilverDragonTears is on a distinguished road
Default

Ok thanks! The sorting in itself is just wonderful! Thanks so much for it!
__________________

Check out SilvaTales
Reply With Quote
  #34  
Old 08-31-2011, 02:39 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 97,412
SilverDragonTears is on a distinguished road
Default

hmm what do I edit to style the table? Having some issues with it and I'm not familiar with JS.
__________________

Check out SilvaTales
Reply With Quote
  #35  
Old 08-31-2011, 03:10 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 37,863
fadillzzz is an unknown quantity at this point
Default

If you want to edit the table body.
Just make a CSS rule with the selector 'tbody.ui-sortable'
Reply With Quote
  #36  
Old 08-31-2011, 03:32 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 97,412
SilverDragonTears is on a distinguished road
Default

like this:

tbody.ui-sortable {
color: #000;
width: 100%;
}

cause that didn't work

nm... it would help if i added <tbody> to it =p
__________________

Check out SilvaTales

Last edited by SilverDragonTears; 08-31-2011 at 03:34 PM.
Reply With Quote
  #37  
Old 08-31-2011, 04:23 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 37,863
fadillzzz is an unknown quantity at this point
Default

Perhaps you should update your javascript code to this one. This will achieve what I actually wanted to make, the first javascript code I provided has a "defect" even though if you have different layout and styling the result might actually be what I expected. Nevertheless, please do try this one and see if you like it better. Otherwise, just revert back to the old javascript code.

HTML Code:
    $(document).ready(function(){
        
        $('body').undelegate('click').delegate('p#activate_sort', 'click', function(){
            var realBg = $('table#sortable_adoptables').css('background-color');
            var submitForm = '<form name="submit_order" id="submit_order" action="" method="post"><fieldset><label for="submit">Submit Changes</label><input type="submit" id="submit" value="Submit"></fieldset></form>';
            $('table#sortable_adoptables').css('background-color', '#FFFF66').animate({ backgroundColor: realBg },  'slow' ).find('tbody').sortable({ cursor: 'pointer' });
            $(submitForm).insertAfter('p#activate_sort').hide().slideDown();
            $('p#activate_sort').attr('id', 'deactivate_sort');
        });
        
        $('body').undelegate('submit').delegate('form#submit_order', 'submit', function(event){
            event.preventDefault();
            var data = $('table#sortable_adoptables tbody').sortable('serialize');
            $.post('ajax_sort.php', data, function(result){
                $('form#submit_order').html(result).delay(5000).fadeOut('slow', function(){
                    $(this).remove();                    
                });
            });
            $('table#sortable_adoptables tbody').sortable('destroy');
            $('p#deactivate_sort').attr('id', 'activate_sort');
        });
        
    });

Last edited by fadillzzz; 08-31-2011 at 04:25 PM.
Reply With Quote
  #38  
Old 08-31-2011, 04:39 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 97,412
SilverDragonTears is on a distinguished road
Default

I did it but I don't see a difference.
__________________

Check out SilvaTales
Reply With Quote
  #39  
Old 08-31-2011, 04:48 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 37,863
fadillzzz is an unknown quantity at this point
Default

You sure? that code above should preserve your table background now...instead of changing it to white
Reply With Quote
  #40  
Old 08-31-2011, 05:36 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 97,412
SilverDragonTears is on a distinguished road
Default

Ahhh that's what it is =) Love it!
__________________

Check out SilvaTales
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Fairy State" theme by Bobbybighoof (Mysidia 1.3.3) bobbybig Templates and Themes 3 07-18-2018 07:54 PM
Sort "myadopts" page SilverDragonTears Questions and Supports 23 06-12-2017 06:39 PM
Removing of prefix "class", "abstract", "interface" Suggestions FounderSim Suggestions and Feature Requests 3 10-05-2014 06:35 PM
Creating a "Faction" for adoptables/owned adoptables Vaporman87 Questions and Supports 1 03-04-2014 04:38 PM
Changing... or "masking" existing URLs Vaporman87 Questions and Supports 7 03-03-2014 08:10 PM


All times are GMT -5. The time now is 08:53 PM.

Currently Active Users: 685 (0 members and 685 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636