Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Merge 610a15b into f2513b1
Browse files Browse the repository at this point in the history
  • Loading branch information
maniolek committed Jun 3, 2016
2 parents f2513b1 + 610a15b commit 8e99d3d
Show file tree
Hide file tree
Showing 720 changed files with 141 additions and 88,263 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
language: php

php:
- 5.4
- 5.5
- 5.6

services:
Expand All @@ -14,7 +12,7 @@ before_install:

before_script:
- phpenv config-add travis/php.ini
- git clone -q --depth=1 https://github.com/phalcon/cphalcon.git -b master
- git clone -q --depth=1 https://github.com/phalcon/cphalcon.git -b phalcon-v2.0.8
- (cd cphalcon/ext; export CFLAGS="-g3 -O1 -fno-delete-null-pointer-checks -Wall"; phpize && ./configure --enable-phalcon && make -j4 && sudo make install && phpenv config-add ../unit-tests/ci/phalcon.ini)
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev
Expand Down
3 changes: 0 additions & 3 deletions assets/.bowerrc

This file was deleted.

24 changes: 0 additions & 24 deletions assets/bower.json

This file was deleted.

18 changes: 17 additions & 1 deletion assets/js/lib/vegas/ui/cloneable.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

preparedField.find('[name]').each(function() {
var orginalName = $(this).attr('name');
var orginalId = $(this).attr('id');

var nameArray = orginalName.split('[');
var baseName = nameArray.shift();
Expand All @@ -26,6 +27,12 @@
nameArray[0] = parseInt(nameArray[0])+rowCounter;
}

if(orginalId) {
var idValueArr = orginalId.split(']');
var idValue = idValueArr.slice(-1).pop();
var newNameValue = baseName + '[' + nameArray.join(']') + idValue;
}

var newName = baseName + '[' + nameArray.join(']');

preparedField.find('[name="'+orginalName+'"]').each(function() {
Expand All @@ -35,13 +42,21 @@
preparedField.find('[id="'+orginalName+'"]').each(function() {
$(this).attr('id',newName);
});

preparedField.find('[id="'+orginalId+'"]').each(function() {
$(this).attr('id',newNameValue);
});

preparedField.find('[for="'+orginalId+'"]').each(function() {
$(this).attr('for',newNameValue);
});
});

return preparedField.show();
};

self.sortable = function(cloneContainer, options) {
if ($.fn.sortable) {
if ($.fn.sortable && options.sortable.active) {
cloneContainer.sortable({
forcePlaceholderSize: true,
items: ':visible'
Expand All @@ -68,6 +83,7 @@
.addClass('cloner-row-remove')
},
'sortable': {
'active': false,
'callback': function() {
var orderIndicator = 0;

Expand Down
47 changes: 0 additions & 47 deletions assets/vendor/bootstrap/.bower.json

This file was deleted.

0 comments on commit 8e99d3d

Please sign in to comment.