lib/anoubis.rb
# Check if element's position was changed (or changed order group)
Check if element's position was changed (or changed order group)
Check if element ' s position was changed ( or changed order group )
def manual_order_changed_orders
        changed = eval('self.'+self.manual_order_options[:field].to_s+'_changed?')
        if self.manual_order_options.key? :groups
          self.manual_order_options[:groups].each do |key|
            changed = eval('self.'+key.to_s+'_changed?') if !changed
          end
        end
        return changed
      end
def manual_order_changed_orders changed = eval ( 'self.' + self . manual_order_options [ :field ] . to_s + '_changed?' ) if self . manual_order_options . key? :groups self . manual_order_options [ :groups ] . each do | key | changed = eval ( 'self.' + key . to_s + '_changed?' ) if ! changed end end return changed end
Check if element's position was changed (or changed order group)
Check if element ' s position was changed ( or changed order group )
#            puts 'self.'+key.to_s+'_changed?' #        puts 'manual_order_changed_orders: '+changed.to_s