Commit 21574474 authored by Bahadir Can Yildiz's avatar Bahadir Can Yildiz

CHANGE rclose #5311, closes #GH-102. Delete buttons on crud will pop modal.

parent fc34f09d
...@@ -610,33 +610,6 @@ angular.module('ulakbus.formService', ['ui.bootstrap']) ...@@ -610,33 +610,6 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
}; };
} }
}, },
//this field is a need for next features
confirmprev: {
default: function (scope, v, k) {
scope.form[scope.form.indexOf(k)] = {
type: "template",
isOpen: false,
title: v.title,
confirm_message: v.confirm_message,
templateUrl: "shared/templates/confirm.html",
name: k,
key: k,
cmd: v.cmd,
style: v.style,
clickHandler: function(){
this.isOpen = !this.isOpen;
},
confirm: function () {
this.isOpen = false;
// send cmd with submit
delete scope.form_params.cmd;
scope.form_params['cmd'] = v.cmd;
generator.submit(scope, false);
}
};
}
},
confirm: { confirm: {
default: function (scope, v, k) { default: function (scope, v, k) {
scope.form[scope.form.indexOf(k)] = { scope.form[scope.form.indexOf(k)] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment